I'm purging an object together with the datastreams in one call using the purge() method on apim (datastreams are base64 encoded). I'm doing it to avoid to use addDatastream as it requires location of the datastream, which again force me to code an resource availabe through some http server, which will return a content of the datastream. Then again when I'm modyfying datastreams i'm only interested doing it by values to avoid the previous issue. Is it posssible to do it that way? I'm using webservices to access fedora.

> Date: Tue, 9 Dec 2008 14:45:27 +0100
> To: p_skawinski@hotmail.com
> Subject: Re: [Fedora-commons-users] Error when modifying a datastream by value
> From: fedora-devel@ginguppin.de
> CC: fedora-commons-users@lists.sourceforge.net
>
> i am not sure, i understand, what you are doing.
> but maybe you should try
> getAPIM().purgeDatastream(...;
> getAPIM().addDatastream(...);
> and maybe
> getAPIM().modifyDatastreambyValue(...);
> ?
>
> if you upload your dadastream's content via
> FedoraClient().uploadFile(File) you can give the returning string as
> dsLocation to addDatastream.


Discover the new Windows Vista Learn more!