Thanks for your help. How to get a handle to Axis' file cache, to the current file especially. Is the cache file guaranteed to have been fully written and closed when my service skeleton implementation code will be run?
>From my skeleton impl: FileOutputStream fos = new FileOutputStream(file); "MTOMrequest.getDataHandler()".writeTo(fos); So what happens here, will I actually be writing the data to disk a second time? > -----Original Message----- > From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] > Sent: 12. heinäkuuta 2007 12:52 > To: [email protected] > Subject: Re: MTOM attachment handling > > > I'm using Axis2. I was wondering if you dont turn on the automatic > > attachment cache, does this affect how the mtom binary stream is handled > by > > Axis? > Not much...If it's enabled the attachment will be cached in a file, if > not it'll be cached in memory.. > > I mean does it maybe hold reading the MIME parts until user appoints a > > stream to write this data to or does it cache the whole thing to > memory? > In to memory.. > > > Not sure if it matters, but in my wsdl from which all the classes are > > generated from there is a custom complex type which holds some normal > types > > such as s:string / s:int and then the s:b64binary. There is no seperate > > wrapper element for the binary as i think i saw in a example. I access > the > > data through a DataHandler. > Are you facing any problems with this combination.. > > thanks, > Thilina > > > > Thanks, > > > > Igor > > > > > -- > Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
