cancel
Showing results for 
Search instead for 
Did you mean: 

Create document using REST API but without CMIS

narayana_giri
Champ in-the-making
Champ in-the-making
This is about the API - POST /alfresco/service/api/path/{store_type}/{store_id}/{id}/children
mentioned in the link http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Create_folder_or_document_.28createDo...

Question - ContentStream contentStream, how do we pass ContentStream without using CMIS option?

Thanks.
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
Upload content using this webscript api
 POST /alfresco/service/api/path/{store_type}/{store_id}/{id}/children
,the content must be encoded using base64 encoder,and wrapped by the cmisra:base64 element in the atom xml file.
here is an example you can refer to