cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET