Use CommonsHTTPSender, stream will be queried only once.

On 9/15/05, Stefan Schuster <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> when I create an attachemt and add it to the message
> Message.createAttachmentPart... Message.addAttachmentPart...
> The Stream set in the DataSource is requested twice
> from the DataSource.
> 
> This is an problem because the stream cannot be reset (FileInputStream)
> and I dont want to buffer the whole file to be able to
> return a new stream whenever the StreamSources
> getStream() method is called.
> 
> Any suggestions?
> 
> Thanks in advance,
> 
> Stefan
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Reply via email to