stream - How to read a char[] object into a tango.io.compress.ZlibStream? -


I have a D program with Tango and I am trying to uncompress a gimp string. Unfortunately I do not have any of its streams, but the compressed data is stored in char [] . I get it tonkos tango.o.o. How can I uncompressed using the .compress.zlbstream ? I need another char [] with uncompressed data

I am trying today for these hours. I am not very familiar with Tango.

Thanks

Edit: My code looks something like this:

  four [] rawData; // Decode data goes here array array = new array (E.W. 4. (E.value.length-3)]); // E.View is a four [] piece of array, four is cast [] "H4sIAAAAAAAAA2NkYGBgHMWDBgMAJW2X0pABAAA =" // array.readable Returns 40 (matches the above string) // Decode string expected to be repetition of 33 "AQAAAAEAAAABAAAA" // "AQAAAA ==" Auto Reader = after the new ZlibInput (array); Ubyte [1024] buffer; Reader.read (buffer); // throws in Z_DATA_ERROR  

Good, it never appears, The file format was designed, by compressing the data, before it was encoded with base64. I still tried to decompress Base 64 encoded data.

When I decode the string with base 64 and used gzip on the resulting ubyte array, then this was the move!

Sorry about that.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -