Hi all,
I am trying to upload an image into a website using Valence API as shown in this link,
http://docs.valence.desire2learn.com/basic/fileupload.html
I have set the headers like Content-Type and Content-Length, but i am unable to understand the rest of the body as i am new to MIME.
I need to create a MIME body using
java like this :
--xxBOUNDARYxx
Content-Disposition: form-data; name="file"; filename="img.jpg"
Content-Type: image/jpeg
{image data here}
--xxBOUNDARYxx--
how do i start and where should i start/
does the "{image data here}" above mean image converted into bytes?
Any help is appreciated.
-Thanks