Hi,
I'm trying to decompress some data throgug ICSharpDevelop, but can't get it to work.
Here is my code:
private static string UnGZip(byte[] Dado)
{
MemoryStream outputMemStream = new MemoryStream(Da do);
MemoryStream PlainStream = new MemoryStream();
using (ICSharpCode.Sh arpZipLib.GZip. GZipInputStream zipInput = new ICSharpCode.Sha rpZipLib.GZip.G ZipInputStream( outputMemStream )) {
byte[] buf = new byte[16384];
int l = -1;
while ((l = zipInput.Read(b uf, 0, buf.Length)) != 0)
PlainStream.Wri te(buf, 0, l);
return Encoding.ASCII. GetString(Plain Stream.ToArray( ));
}
}
I keep getting the error EOF something.
I was using .NET library before, but wasn't working in some machines.
Thanks
Felipe Soares
I'm trying to decompress some data throgug ICSharpDevelop, but can't get it to work.
Here is my code:
private static string UnGZip(byte[] Dado)
{
MemoryStream outputMemStream = new MemoryStream(Da do);
MemoryStream PlainStream = new MemoryStream();
using (ICSharpCode.Sh arpZipLib.GZip. GZipInputStream zipInput = new ICSharpCode.Sha rpZipLib.GZip.G ZipInputStream( outputMemStream )) {
byte[] buf = new byte[16384];
int l = -1;
while ((l = zipInput.Read(b uf, 0, buf.Length)) != 0)
PlainStream.Wri te(buf, 0, l);
return Encoding.ASCII. GetString(Plain Stream.ToArray( ));
}
}
I keep getting the error EOF something.
I was using .NET library before, but wasn't working in some machines.
Thanks
Felipe Soares
Comment