Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Compress function: Transforming byte array into a string.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19453 |

    I wish transforming the compressed byte array returned by Compression function into a string. Which encoding should I use?

    Thanks for your help.

    Olman Q

    Imported from legacy forums. Posted by oquesada (had 2278 views)

    User (Old forums)
    Member
    Post count: 23064

    You could try Base64 encoding: <code>byte[] compressedBytes = …; // the compressed byte array
    string s = Convert.ToBase64String(compressedBytes);</code>

    Imported from legacy forums. Posted by Tommy (had 3007 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.