tags:

views:

45

answers:

1

Hi plz help me i can't find out callback function for CURLOPT_WRITEFUNCTION to download images and save it to file or memory. Thank you for help.

A: 

The first hit on Google when I searched for "CURLOPT_WRITEFUNCTION" was something which seem to be exactly what you're looking for.

dutt
No i'm talking about c# for example this function uses for reading string data public static Int32 OnWriteData(Byte[] buf, Int32 size, Int32 nmemb, Object extraData) { // Console.Write(System.Text.Encoding.UTF8.GetString( buf)); SockBuff = SockBuff + System.Text.Encoding.UTF8.GetString(buf); return size * nmemb; } but i need to read binary data like images
imbriarius