cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Beginners : Downloading an jpeg to harddisk
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  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)
| Last edited on

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us