A question re peroming an upload of a file in java

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
drbaz
Member II

A question re peroming an upload of a file in java

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
:?
2 Replies
drbaz
Member II

Re: A question re peroming an upload of a file in java

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 ?

I need a beer
:roll:
rwetherall
Active Member II

Re: A question re peroming an upload of a file in java

Hi,

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.

Cheers,
Roy