cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Very Large files

csbrown
Champ in-the-making
Champ in-the-making
I'm wondering how to use the WebService to put files in alfresco that are very large in size, meaning larger than I want to store in a byte[] to eat up all my memory.  The only method I see on the WebService interface for writing to a content node is the ContentServiceSoapBindingStub.write(..) method. 

Is there any other way to give it a stream to read from as it writes the content?

Perhaps multiple calls to the write() method would work.  Is that safe?

Thanks,

Colby
15 REPLIES 15

rdanner
Champ in-the-making
Champ in-the-making
It looks like this area has been set up in the known issues area:

http://wiki.alfresco.com/wiki/Large_Files_using_the_Web_Services_API

rdanner
Champ in-the-making
Champ in-the-making
It looks like this area has been set up in the known issues area:

http://wiki.alfresco.com/wiki/Large_Files_using_the_Web_Services_API


This article may have some value, I am still looking at it but from a first pass it is looks like its worth a read.
http://www.computerworld.com/developmenttopics/development/story/0,10801,79698,00.html

rdanner
Champ in-the-making
Champ in-the-making
It looks like this area has been set up in the known issues area:

http://wiki.alfresco.com/wiki/Large_Files_using_the_Web_Services_API


This article may have some value, I am still looking at it but from a first pass it is looks like its worth a read.
http://www.computerworld.com/developmenttopics/development/story/0,10801,79698,00.html

He has some interesting points but the proposed scenario does not really in line with the question in a direct sense.  I think it speaks to what I was getting at but dives into implementation details that are uninteresting from a client perspective.

Can someone expand a little on the idea which leverages attachements?

rdanner
Champ in-the-making
Champ in-the-making
It looks like this area has been set up in the known issues area:

http://wiki.alfresco.com/wiki/Large_Files_using_the_Web_Services_API


This article may have some value, I am still looking at it but from a first pass it is looks like its worth a read.
http://www.computerworld.com/developmenttopics/development/story/0,10801,79698,00.html

He has some interesting points but the proposed scenario does not really in line with the question in a direct sense.  I think it speaks to what I was getting at but dives into implementation details that are uninteresting from a client perspective.

Can someone expand a little on the idea which leverages attachements?

looks like i killed this conversation …  Smiley Sad

carina
Champ in-the-making
Champ in-the-making
What about a WebDAV PUT?  I've used that in the past on other projects, so we were going to try it with Alfresco.  Use CML to create the node, and then use a WebDAV PUT to upload the content if the file is huge.  What do you think?

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

So the current thinking is to use WebDav as the most conventient way of streaming up content to the repository.

In the 1.4 timeframe we'll try and put together something that helps with this.  If anyone has already made some progress with this then please drop me a line.

In future releases we need to crack this problem in a more robust way (WebDav streaming will be in a different transaction ot the CML statement t may relate to).

Cheers,
Roy