cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Downloading an jpeg to harddisk
Downloading an jpeg to harddisk
Aug 27, 2008 at 1:11pm UTC
alberto2000
(10)
...how would this be possible?
Aug 27, 2008 at 1:55pm UTC
helios
(17530)
After five seconds of searching:
http://www.cplusplus.com/forum/windows/3258/
Aug 27, 2008 at 3:02pm UTC
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?
Aug 27, 2008 at 8:13pm UTC
Zaita
(2770)
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.
Aug 28, 2008 at 1:03pm UTC
alberto2000
(10)
im quite new to winsock isnt there any api i can use for downloading files?
Aug 28, 2008 at 1:31pm UTC
alberto2000
(10)
found this:
http://curl.haxx.se/libcurl/
but how do i use it?
Aug 28, 2008 at 7:44pm UTC
Zaita
(2770)
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
Aug 28, 2008 at 7:45pm UTC
Topic archived. No new replies allowed.