Hi Tim,

> When I don't encode the content stream,
> the modify succeeds, and the result is correct.

A lot of SOAP toolkits will do the base64-encoding for you, so I suspect the problem is double-encoding.

- Chris

-----Original Message-----
From: fedora-users-bounces@comm.nsdl.org on behalf of Timothy Cornwell
Sent: Tue 5/17/2005 2:28 PM
To: fedora-users@comm.nsdl.org
Subject: [Fedora-users] (no subject)


Hello List,

I am trying to change the DC datastream with the modifyDatastreamByValue
method in APIM, but get this message:
  "XML was not well formed.  Content is not allowed in prolog."

I am base64-encoding the input content by using the
StreamUtility.encodeBase64 in fedora.server.utilities, but the encoding
seems to be a source for my error.  When I don't encode the content stream,
the modify succeeds, and the result is correct.

-Tim C.


_______________________________________________
Fedora-users mailing list
Fedora-users@comm.nsdl.org
http://comm.nsdl.org/mailman/listinfo/fedora-users