Hi Kris, You can use Axis2's MTOM support for this , it it possible to have either DataHandler or a byte array as a method arguments for binary data, but DataHandler is much more optimized way to handle this. Try to refer following tutorials [1] ,[2]
[1] - http://wso2.org/library/3860 [2] - http://wso2.org/library/264 Thanks, On Wed, Apr 22, 2009 at 8:42 PM, Kris82 <kit...@gmail.com> wrote: > > Hi, > > I have a web application which basically uploads a image and stores it in a > database. Now i want to make it a webservice, I already created Spring POJO > webservice which does other operations, Now i want to add a operation to > upload a photo ( Client sends a photo (multi-part) as a request). Can you > please suggest me the best approach to write an interface to accept the > multipart request. > > Can I have this operation:- String upload(String name, FileInputStream fis){ > /* DOA's and stuff to store the photo in the DB *? > > } > > And i will have Axis with attachments to send the multipart request. Or is > there any better approach to get this done easily. > > Please provide your valuable suggestion. > > Thanks > Kris > -- > View this message in context: > http://www.nabble.com/Need-help-in-designing-POJO-webservice-tp23175517p23175517.html > Sent from the Axis - User mailing list archive at Nabble.com. > > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/