IdeaBlade DevForce 2010 Help Reference
CompressString Method
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace > GZipStream Class : CompressString Method



s
A string to compress. The string will first be encoded using UTF8, then compressed.
Compress a string into a byte array using GZip.

Syntax

Visual Basic (Declaration) 
Public Shared Function CompressString( _
   ByVal s As String _
) As Byte()
Visual Basic (Usage)Copy Code
Dim s As String
Dim value() As Byte
 
value = GZipStream.CompressString(s)
C# 
public static byte[] CompressString( 
   string 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 form

Remarks

Uncompress it with UncompressString.

Requirements

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

See Also

© 2013 All Rights Reserved.