users@jersey.java.net

Re: Multipart Post

From: sshapero <basscakes_at_gmail.com>
Date: Tue, 16 Mar 2010 10:10:23 -0800 (PST)

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.