Qt World Summit: Register Today!

Image uploading to a web service

  • I need to snap a picture and upload it to my web service using POST method. Is there any good examples on how to do this? I've managed to snap picture with Camera element so far.

  • On the C++ side you can use QNAM to perform the POST. The little problem is packing the data in a mime/multipart message -- in 4.8 QHttpMultiPart will help you to do that, but in 4.7 you're on your own...

  • Uh, thanks for info. Looks like it is trickier than I thought.

Log in to reply