Overview
Features
Download
Documentation
Community
Add-Ons & Services

Upload File

Please post support and help requests here.

Upload File

Postby newbie » 20 Jul 2007, 01:52

Hello!

I compiled the example HTTPFormServer from Poco - Net - Samples. It shows how to retrieve filename and size from an uploaded file but my question is How can I retrieve the actual content of the uploaded file?

Thanks in advance.
newbie
 
Posts: 6
Joined: 13 Jun 2007, 21:07

Re: Upload File

Postby guenter » 20 Jul 2007, 02:10

It's not that hard. Look at the last four lines in handlePart(). Hint: the second argument to handlePart() is an std::istream. Guess what it can be used for ;-)
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Upload File

Postby newbie » 20 Jul 2007, 19:28

Thanks a lot, guenter !!
newbie
 
Posts: 6
Joined: 13 Jun 2007, 21:07


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron