Not sure whether it's mentioned in that thread.. But you can use the
getIncomingAttachmentStreams()  method of the Axiom Attachments
class[1] to access the underlying attachment streams too...

thanks,
Thilina
[1] 
http://ws.apache.org/commons/axiom/apidocs/org/apache/axiom/attachments/Attachments.html
> Great, that's what I was hoping to hear.  Thanks to both of you.
>
> Thilina Gunarathne wrote:
> > Yes..
> >
> > On 8/4/07, Chad La Joie <[EMAIL PROTECTED]> wrote:
> >> Thanks Thilina & Dims.
> >>
> >> Just one other question then.  The thread that Dims pointed me at is
> >> about SwA.  Does the same discussion apply to Axis's MTOM support?  The
> >> spec I'm following allows MTOM but not SwA.
> >>
> >>
> >> Thilina Gunarathne wrote:
> >>>>>> My question is, does Axis 2 (client and service side) support true
> >>>>>> end-to-end streaming.  By this I mean can a service stream data from
> >>>>>> disk, over HTTP to the client and provide a stream on the client side
> >>>>>> which can be dumped direct to disk?
> >>> Yes... You can use the attachment streaming capability as mentioned in
> >>> the above thread.
> >>>
> >>> You can also use the Axis2 file caching in a smart way if your
> >>> requirement is only to dump the file in to the disk in the client
> >>> side. Axis2 file caching dumps the received bytes directly to the disk
> >>> if the receiving attachment is larger than a certain limit.
> >>>
> >>> You can manipulate the cached files in the following way by adding some
> >>> code to the client side business logic (Make sure to make the file size
> >>> threshold 0).
> >>>
> >>> DataHandler dataHandler = (DataHandler)omText.getDataHandler();
> >>> // You can check the data source type for added safety
> >>> FileDataSource fileDataSource = 
> >>> (FileDataSource)dataHandler.getDataSource();
> >>> File file = fileDataSource.getFile();
> >>> //Rename to your desired file name
> >>> file.renameTo(new File("MyFile.bin"));
> >>>
> >>> Make sure to increase the socket time out and also enable  HTTP
> >>> Chunking when sending larger data..
> >>>
> >>> thanks,
> >>> Thilina
> >>>
> >>>>>> I had read the MTOM guide [1] and while I see data handlers and sources
> >>>>>> being used it doesn't say whether Axis 2 is architected in such a way
> >>>>>> that the data is never buffered in memory.
> >>>>>>
> >>>>>> Thanks for the help.
> >>>>>>
> >>>>>>
> >>>>>> [1] http://ws.apache.org/axis2/1_0/mtom-guide.html
> >>>>> --
> >>>>> Chad La Joie             2052-C Harris Bldg
> >>>>> OIS-Middleware           202.687.0124
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>
> >>>>>
> >>>> --
> >>>> Davanum Srinivas :: http://davanum.wordpress.com
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>
> >> --
> >> Chad La Joie             2052-C Harris Bldg
> >> OIS-Middleware           202.687.0124
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> Chad La Joie             2052-C Harris Bldg
> OIS-Middleware           202.687.0124
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to