Sending an image via POST Multipart (HTTPRequest)
- by James Jeffery
I'm trying to send an image to a server, using HTTP Post Multipart. Everything else is fine, I have all the boundrys set and stuff.
But what do I have to do to the image before hand? Do I have to convert it to binary? Here is the header data from the header (using Fiddler). This is what I need to upload:
-----------------------------7daea2aa40c80
Content-Disposition: form-data; name="pict"; filename="pic.jpeg"
Content-Type: image/pjpeg
<Binary here ... or at least I think it is> ..
?????JFIF?????????C? (lots more of this I removed)
Any advice?