cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Newb:Save image to a file:C++

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sat, 28 Feb 2009 11:03:57 -0600

On Sat, Feb 28, 2009 at 10:54 AM, Erico <chubychoco_at_yahoo.com> wrote:

> fp = fopen("google.png", "w");

Are you by any chance using Windows?
If so, maybe opening the file in "binary" mode:

  fp = fopen("google.png", "wb");

 - Jeff
Received on 2009-02-28