Page 1 of 1

Upload File

Posted: 20 Jul 2007, 01:52
by newbie
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.

Re: Upload File

Posted: 20 Jul 2007, 02:10
by guenter
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 ;-)

Re: Upload File

Posted: 20 Jul 2007, 19:28
by newbie
Thanks a lot, guenter !!