Re: Deflate Encoding
| Newsgroups | gmane.network.gnutella.devel |
|---|---|
| Organization | Home, Grenoble, France |
| Message-ID | <[email protected]> |
Quoting mark W <[email protected]> from ml.gnutella.dev-forum: :API ---- I am using .Net based Api something like this: : :Byte [] buffer; // it has compressed data :Byte[] deComp;//Decompressed data :Stream streamObj = new System.IO.Compression.DeflateStream(new :MemoryStream(buffer), CompressionMode.Decompress); :streamObj.Read(deComp,0,buffer.Length); :streamObj.close; Hah! The error is obvious!! Try to find it. In the small snippet you have posted above, there is a grave logic bug. Unless you can find it, you're not up with the task of writing a Gnutella client. :-) You can formulate your hypothesis here, to increase your understanding, but I won't tell you the bug because that would kill your learning process. Good luck. Raphael