Downloading an jpeg to harddisk
| alberto2000 (10) | |||
| ...how would this be possible? | |||
| helios (1515) | |||
| After five seconds of searching: http://www.cplusplus.com/forum/windows/3258/ | |||
| alberto2000 (10) | |||
| I found that also, but doesnt seem to help me with the matter as im really newbie. win32 net apis, com, how do i use them? | |||
| Zaita (1560) | |||
| I will tell you how I'd do it. 1. Create a WinSock connection to the target server 2. Send the HTTP request for the image 3. Receive response 4. Parse-Response and extract Jpeg components 5. Write to .jpg file. | |||
| alberto2000 (10) | |||
| im quite new to winsock isnt there any api i can use for downloading files? | |||
| alberto2000 (10) | |||
| found this: http://curl.haxx.se/libcurl/ but how do i use it? | |||
| Zaita (1560) | |||
| Try the documentation, or a libcurl forum :) The Win32API has WinSock functionality built in, if you download a Win32API Guide you should find the required example code :) Or use this sample code: http://www.cplusplus.com/src/urlmon.zip From: http://www.cplusplus.com/src/ (also has a WinSock class for you there) | |||
This topic is archived - New replies not allowed.
