I'm not sure if you're talking REST -- Sergey has an multipart attachments example in Talend Service Factory (based on CXF) that might help you: http://sberyozkin.blogspot.com/2011/02/jax-rs-attachments-demo-in-tsf-232.html

Glen

On 11.03.2011 11:50, Rice Yeh wrote:
Hi,
   How do I compose a mulitpart/form-data with a form field and a file like
below with cxf?

         Content-type: multipart/form-data, boundary=AaB03x

         --AaB03x
         content-disposition: form-data; name="field1"

         Joe Blow
         --AaB03x
         content-disposition: form-data; name="pics"; filename="file1.txt"
         Content-Type: text/plain

          ... contents of file1.txt ...
         --AaB03x--


Regards,
Rice


--
Glen Mazza
Software Engineer, Talend (http://www.talend.com)
blog: http://www.jroller.com/gmazza


Reply via email to