Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › Compress function: Transforming byte array into a string.
I wish transforming the compressed byte array returned by Compression function into a string. Which encoding should I use?
Thanks for your help.
Imported from legacy forums. Posted by oquesada (had 2278 views)
You could try Base64 encoding: <code>byte compressedBytes = …; // the compressed byte arraystring s = Convert.ToBase64String(compressedBytes);</code>
Imported from legacy forums. Posted by Tommy (had 3007 views)