From: Magicaoc M. <mag...@ya...> - 2009-12-11 08:29:15
|
Good morning, multipart form data it is then. I will try to put it together and test the performance. I wonder how it will work with many requests passing files here and there :). Greetings ________________________________ From: Bill Burke <bb...@re...> To: Magicaoc Magicaoc <mag...@ya...> Cc: res...@li... Sent: Thu, December 10, 2009 5:23:11 PM Subject: Re: [Resteasy-developers] How to transfer attachment (or any file for that matter) using RESTeasy I'd use multipart form data since really, I've never used XOP before :) Magicaoc Magicaoc wrote: > Hi, > > as the topic says I would like to understand which is the right way to transfer files with a RESTful (RESTeasy) web service. In my example application I would like to send an email using a RESTeasy service. Something like POST /app/email?from=x&to=y.... > > Should I use XOP and pass the file as byte[] or is there another method? > > Greetings > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |