Visual Basic (Usage) | ![]() |
---|---|
Dim s As String Dim value() As Byte value = GZipStream.CompressString(s) |
C++/CLI | |
---|---|
public: static array<byte>^ CompressString( String^ s ) |
Parameters
- s
- A string to compress. The string will first be encoded using UTF8, then compressed.
Return Value
The string in compressed formUncompress it with UncompressString.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family