cancel
Showing results for 
Search instead for 
Did you mean: 

A question re peroming an upload of a file in java

drbaz
Champ in-the-making
Champ in-the-making
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 2

drbaz
Champ in-the-making
Champ in-the-making
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
Confirmed Champ
Confirmed Champ
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