I can understand how the WebServiceSamples create new content in Alfresco by using contentService.create method. But the examples only show how to create the content from a String. I want to upload a file i.e. createContent from a file - and I'm not sure the most efficient way to do this. Please could you help Thanks in advance :?
It must be gettig close to the weekend - just not thinking straight ………….. I've used a method to return the contents of the file in a byte array and then used contentService.create .. and it works ……….. duh!
But is this the most efficient way of uploading files to Alfresco ?
Via the web service interface then that's probably as good as it gets at the moment.
If you just want to get files into Alfresco then using the FTP or CIFS interfaces can be easier as they both allow you 'drag and drop' folders of content straight into the repository.