Forum C# Decompressing byte arrays in C#

Decompressing byte arrays in C#

Postby GameTwoThree » September 25th, 2011, 3:30 pm

I was wondering, is there a way to read and decompress a bytearray in C# which was compressed in flash(as3) using the deflate(); function?

So, I'm sending a compressed arrray from client to server, and want to decompress it there and read it's contents.

If anyone knows how to do it, can you please provide me with an code example if it's not a problem.

Thanks a lot,
Karlo
GameTwoThree
Paid Member
 
Posts: 11
Joined: February 28th, 2011, 2:11 am

Re: Decompressing byte arrays in C#

Postby fox1980 » September 28th, 2011, 2:57 pm

I think it's not possible at the moment. Oliver said in another post (http://playerio.com/forum/post7083) they we're going to whitelist System.Compression namespace, but i don't think it's done yet.
fox1980
 
Posts: 206
Joined: April 1st, 2010, 10:39 pm

Re: Decompressing byte arrays in C#

Postby Oliver » October 12th, 2011, 12:41 pm

System.IO.Compression is whitelisted now, has been for some time :)

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1136
Joined: January 12th, 2010, 8:29 am


Return to C#