I\'m trying to write a restful web service in java that will take a few string params and a binary file (pdf) param.
I understand how to do the strings but I\'m get
You could store the binary attachment in the body of the request instead. Alternatively, check out this mailing list archive here:
http://markmail.org/message/dvl6qrzdqstrdtfk
It suggests using Commons FileUpload to take the file and upload it appropriately.
Another alternative here using the MIME multipart API:
http://n2.nabble.com/File-upload-with-Jersey-td2377844.html