- Fixed problem with uploading binary files into repository via the web service API

- Classification tests now work since categories can be imported into test space using action web service API

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall 2006-01-18 11:25:06 +00:00
parent 8182711dda
commit 66fb7ea855

View File

@ -16,6 +16,8 @@
*/
package org.alfresco.repo.webservice.content;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.rmi.RemoteException;
@ -202,7 +204,8 @@ public class ContentWebService extends AbstractWebService implements
}
// Write the content
writer.putContent(new String(content));
InputStream is = new ByteArrayInputStream(content);
writer.putContent(is);
// Debug
if (logger.isDebugEnabled())