[ http://issues.apache.org/jira/browse/AXIS-1872?page=history ]
Marc Dumontier updated AXIS-1872:
---------------------------------
Attachment: dime-patch.txt
I wrote a small patch for axis 1.2 RC3 to allow me to take advantage
> DIME record chunking. This allows people who generate dynamic content
> who don't know the size of their data beforehand to stream out.
>
> I've been streaming 2GB+ attachments out with no problem.
>
> Using it is very simple
>
> for example:
>
> DynamicContentDataHandler datahandler = null;
> URL url = new URL("http",host,port,QUERY_STRING);
> URLDataSource dataSource = new URLDataSource(url);
> datahandler = new DynamicContentDataHandler(dataSource);
> datahandler.setChunkSize(10 * 1024 * 1024);
>
> This will make dime record chunks of 10MB, and only buffer 20MB of data
> at any one time.
>
>
>
> Allow for streaming of DIME attachments
> ---------------------------------------
>
> Key: AXIS-1872
> URL: http://issues.apache.org/jira/browse/AXIS-1872
> Project: Axis
> Type: New Feature
> Components: SAAJ
> Versions: 1.2RC3
> Reporter: Marc Dumontier
> Attachments: dime-patch.txt
>
> The current system does not allow for streaming DIME attachments because the
> size of the data is requested from the DataHandler first (this usually means
> reading the entire stream, then resetting it), and then a single DIME record
> is created.
> The DIME specification allows for the use of record chunking so that dynamic
> content generators can stream back data with a small memory footprint.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira