Search found 9 matches
- Fri Aug 15, 2014 2:40 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
this is driving me nuts. ok, it looks like that the WinApi for WinInet is already handling the chunked data by itself. At least the chunksize and the CRLF is gone in my response. I compared the HEX data of the server response shown in Fiddler (when executing my app) and from my buffer (aftrer saving ...
- Fri Aug 15, 2014 2:37 am
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
what download do you mean? I searched for "PureBasic Interface to WinDivert", but found nothing. however, I'm pretty sure the problem is because the data is chunked. As far as I understand, the data should be:
chunk-len
CRLF
chunked data
CRLF
chunk-len
....
the data my buffer holds does not look ...
chunk-len
CRLF
chunked data
CRLF
chunk-len
....
the data my buffer holds does not look ...
- Thu Aug 14, 2014 12:43 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
hi,
thanks, but I already checked parts of this code. http://www.purebasic.fr/english/viewtopic.php?f=13&t=56969&hilit=ImportC+zlib.lib+ was where I had the code to get the size of the decompressed data from.
However that code is not correct. I finally understood why ^^ there are different ways to ...
thanks, but I already checked parts of this code. http://www.purebasic.fr/english/viewtopic.php?f=13&t=56969&hilit=ImportC+zlib.lib+ was where I had the code to get the size of the decompressed data from.
However that code is not correct. I finally understood why ^^ there are different ways to ...
- Thu Aug 14, 2014 3:16 am
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
update: I made a little progress. I gz compressed a string and saved it to a gz file using my webserver (using gzcompress which also uses zlib). then I opened the file in PB, used ReadData() to get the content and manually set the uncompressed_len var to the lenght of the original string. The string ...
- Wed Aug 13, 2014 3:23 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
Hi,
I already saw this, but I prefer a minimalistic solution. If using zlib from PB really does the job with a few lines of code, that would be perfect for me.
- Wed Aug 13, 2014 2:22 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
hi,
first, thanks for all your comments.
@Little John: I tried that, but nothing shows up :/
@Danilo: I had thread-safe enabled, but I enabled it when I had the include file open (the procedure is in a separate file), not when I had the focus main file, after enabling it also on the main file ...
first, thanks for all your comments.
@Little John: I tried that, but nothing shows up :/
@Danilo: I had thread-safe enabled, but I enabled it when I had the include file open (the procedure is in a separate file), not when I had the focus main file, after enabling it also on the main file ...
- Wed Aug 13, 2014 12:41 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
anyone? sometimes even the whole debugger crashes, so I can't even check where exactly it crashes..
- Tue Aug 12, 2014 2:08 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
Re: looking for a solution to decode gzip compressed json st
hi,
thanks for your answer. however, I'm having trouble to get it to work. here's what I tried so far, but the result is, that my program is crashing at a strange point (outside the procedure which tries to uncomress the data, so it appears to be a memory problem):
cString.s = SOMEDATA ; holds ...
thanks for your answer. however, I'm having trouble to get it to work. here's what I tried so far, but the result is, that my program is crashing at a strange point (outside the procedure which tries to uncomress the data, so it appears to be a memory problem):
cString.s = SOMEDATA ; holds ...
- Mon Aug 11, 2014 11:18 pm
- Forum: Coding Questions
- Topic: looking for a solution to decode gzip compressed json stream
- Replies: 16
- Views: 3913
looking for a solution to decode gzip compressed json stream
hi,
I'm currently experimenting with server-client stuff. everything works fine, but I'd like to support gzip compressed streams. Is there a solution that works under x86/x64 and if possible without any overhead? I really only need to decompress a string, nothing more. I read somewhere, that the ...
I'm currently experimenting with server-client stuff. everything works fine, but I'd like to support gzip compressed streams. Is there a solution that works under x86/x64 and if possible without any overhead? I really only need to decompress a string, nothing more. I read somewhere, that the ...