Fedora currently does not use soap with attachments, which would be the right way to
support this over soap in a non-memory-bound way.

You can however use plain old http to get the content:


This gets the most recent version of the datastream.
For a specific version you can add /date to the end of the url.  For example:


- Chris

-----Original Message-----
From: fedora-commons-users-bounces@lists.sourceforge.net on behalf of Hassan, Steve
Sent: Tue 7/3/2007 9:17 AM
To: Fedora-commons-users@lists.sourceforge.net
Subject: [Fedora-commons-users] large datastream download memory issue

i uploaded a 100mb datastream to fedora and i have a problem with download of the stream using the fedora api-a.


 MIMETypedStream mts = FedoraAccess.getDatastreamDissemination(pid,dsID,null);
 byte b = mts.getStream();

this creates a byte array of at least 100MB in memory.

is there a way to buffer the datastream instead?

Steve Hassan
Systems and Applications Developer

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Fedora-commons-users mailing list