You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jeremy Hynoski <jh...@gmail.com> on 2005/04/28 21:11:04 UTC

Axis 1.2 Attachments Question

Hi,

Not sure if this has been dealt with before.
We have a wsdl that uses application/octet-stream to pass an attachment to a
web service.
Now this attachment can be HUGE, often up to 50 meg in size.

The issue is, the axis OctetStream class is nigh on useless, since it
entails reading the entire file into memory as a byte array in order to be
able to send this file. This is not scalable and a nasty solution.

Is there a better way to stream from a file direct into the soap attachment
output stream? I noticed in the alphas that octetstreams were mapping to
DataHandlers which I thought would do this, but this "bug" was fixed
(AXIS-1289).

Jeremy