Sending an image via POST Multipart (HTTPRequest)
Posted
by James Jeffery
on Stack Overflow
See other posts from Stack Overflow
or by James Jeffery
Published on 2010-02-20T20:09:11Z
Indexed on
2010/05/09
17:38 UTC
Read the original article
Hit count: 294
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?
© Stack Overflow or respective owner