Agh, sorry, I found FileDataBodyPart. This works perfectly! Image
successfully uploaded. For those wondering or who google this in the
future:
MyMultiPart multiPart = new MyMultiPart();
multiPart.bodyPart(new FileDataBodyPart("image", file,
MediaType.valueOf("image/jpg")));
public class MyMultiPart extends FormDataMultiPart { }
Thanks
Steve
--
View this message in context: http://n2.nabble.com/Multipart-Post-tp4252846p4745435.html
Sent from the Jersey mailing list archive at Nabble.com.