Chilkat HOME Android™ Classic ASP C C++ C# Mono C# .NET Core C# C# UWP/WinRT DataFlex Delphi ActiveX Delphi DLL Visual FoxPro Java Lianja MFC Objective-C Perl PHP ActiveX PHP Extension PowerBuilder PowerShell PureBasic CkPython Chilkat2-Python Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ Visual Basic 6.0 VB.NET VB.NET UWP/WinRT VBScript Xojo Plugin Node.js Excel Go
(VB.NET UWP/WinRT) Decompress BytesDemonstrates how to decompress binary data.
' This example requires the Chilkat API to have been previously unlocked. ' See Global Unlock Sample for sample code. ' See this example to compress bytes: Compress Bytes Dim fac As New Chilkat.FileAccess Dim compressedBytes() As Byte compressedBytes = fac.ReadEntireFile("qa_data/compressed/compressedBmp.dat") If (fac.LastMethodSuccess <> True) Then Debug.WriteLine(fac.LastErrorText) Exit Sub End If Dim compress As New Chilkat.Compression compress.Algorithm = "deflate" Dim decompressedBytes() As Byte decompressedBytes = Await compress.DecompressBytesAsync(compressedBytes) If (compress.LastMethodSuccess <> True) Then Debug.WriteLine(compress.LastErrorText) Exit Sub End If Dim success As Boolean = fac.WriteEntireFile("qa_output/decompressed.bmp",decompressedBytes) If (fac.LastMethodSuccess <> True) Then Debug.WriteLine(fac.LastErrorText) Exit Sub End If |
© 2000-2022 Chilkat Software, Inc. All Rights Reserved.