curl-library
Re: Download a gif
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 15 Feb 2008 11:25:29 +0100
Date: Fri, 15 Feb 2008 11:25:29 +0100
Michael Hecker wrote:
> // Output of the data
I guess your problem is right about here. You don't do anything with the
chunk of data you just received. What do you intend to do with it?
Are you only inspecting the data with a debugger?
In that case, I guess your debugger treats chunk1.memory as a string and
displays it accordingly, up to the next null byte.
All in all, the GIF file is correctly received, but you are
misinterpreting the received data, since it is binary and not text. Just
check chunk1.size and see that it is far bigger than 9 bytes.
Linus
Received on 2008-02-15