curl-library
Re: question regarding CURLOPT_WRITEFUNCTION & CURLOPT_WRITEDATA
From: Mohun Biswas <m_biswas_at_mailinator.com>
Date: Tue, 21 Oct 2008 20:57:15 -0400
Date: Tue, 21 Oct 2008 20:57:15 -0400
Ralph Mitchell wrote:
> The md5sum of the new file, /tmp/image.png, exactly matches the original
> and it displays just fine. Seems to me like getinmemory.c does a fine
> job of grabbing a binary file.
The OP appears to be using Windows (based on mention of "dll") in which
case it may be a text/binary problem. I.e. the fopen would have to use
"wb" instead of just "w".
MB
Received on 2008-10-22