Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
BZIP2 Compress String returning URL-Encoded Compressed StringDownload: Chilkat .NET Assemblies This example code shows how to do BZIP2 string compression, returning a URL-encoded compressed string. ' This example uses the Chilkat .NET encryption library, which can be downloaded
' at http://www.chilkatsoft.com/downloads.asp
' Create an instance of the Chilkat encryption class.
Dim crypt As New Chilkat.Crypt2()
' Any code begins the 30-day trial.
crypt.UnlockComponent("30-day-trial")
' We want the result to be url-encoded.
crypt.EncodingMode = "url"
' Generate some data to BZIP2 compress...
Dim str As String
Dim i As Integer
For i = 1 To 10
str = str + "This is VB.NET BZIP2 example " & i & vbCrLf
Next
' BZIP2 compress the string, returning a url-encoded compressed string.
Dim outStr As String
outStr = crypt.CompressStringENC(str)
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.