mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-23 18:05:32 +00:00
- 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:
parent
8182711dda
commit
66fb7ea855
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user