Xceed .NET Libraries Documentation
MemoryCompress Sample Application
Welcome to Xceed .NET, .NET Standard and Xamarin Libraries! > Sample Applications > Streaming capabilities > MemoryCompress Sample Application

Programming languages

C# and VB.NET

Overview

This sample demonstrates how to compress and decompress data read from MemoryStreams using the GZipCompressedStream, XceedCompressedStream and ZLibCompressedStream classes.

How to use

Enter the text to compress in the Text to compress text box and select the desired compression format. Press on the Compress button to compress the data. To decompress the compressed data, press on the Decompress button. The decompressed text will be added to the Decompressed text text box once it is decompressed.

Project location & filename

Master directory: 

<SamplesInstallDir>Xceed Zip for .NET [version]\

Where <SamplesInstallDir> by default is <SystemVolume>Xceed Samples under Windows Vista/7, and <ProgramFiles>Xceed Samples under Windows XP. NOTE: The sample applications for Xceed's FileSystem based products are all contained in the "Xceed Zip for .NET" folder.

C#: \CSharp\MemoryCompress\MemoryCompress.csproj

VB.NET: \Visual Basic .NET\MemoryCompress\MemoryCompress.vbproj