cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl png image from string stream/buff to image format

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 May 2011 15:13:26 +0200 (CEST)

On Thu, 26 May 2011, Security Guru wrote:

> Curl users

Exactly. But you're rather talking libcurl so curl-library is a much better
list for you to ask questions such as this on. curl-users is for users of the
command line tool.

> I have a downloaded a png image into buffer through the following

...

> here after filling buffer from download, what is the best and easy way to
> get into image format, preferably png or bmp

Sorry, but if you download an image it is typically alreday in an image format
- no need to "get into" any format. You can parse the Content-Type: header to
see what type the server says it is.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-27