cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Encoding issue getting an image with libcURL

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 8 Feb 2005 23:37:23 +0100 (CET)

On Tue, 8 Feb 2005 julien.woillez_at_free.fr wrote:

> // Open the file to write the copied file to
> destFile = fopen("myImage.gif,"w");

You must open the file in binary mode to get binary stuff to work on windows:

         destFile = fopen("myImage.gif,"wb");

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-08