cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download a gif

From: Michael Hecker <Hecker.Michael_at_gmx.de>
Date: Fri, 15 Feb 2008 11:49:36 +0100

Linus Nielsen Feltzing schrieb:
> 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?
I want to write it to the console.
>
> 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.
Thats right. What can I do to display all the data?
>
> 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.
chunk1.size has got the correct size, so how can I display all the data?

Michael
>
> Linus
>
Received on 2008-02-15