Compress a string data to a byte array.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Shared Function Compress ( _
	data As String _
) As Byte()
C#
public static byte[] Compress(
	string data
)

Parameters

data
Type: System..::..String
String data to compress.

Return Value

Compressed data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also