cancel
Showing results for 
Search instead for 
Did you mean: 

Error when uploading 80M file Using webservice?

alvisccc
Champ in-the-making
Champ in-the-making
Hi all,

I am using webservice api to uploading a PDF file(~ 80M) to alfresco,by using
"contentService.write(contentRef, Constants.PROP_CONTENT,bytes, contentFormat);"
but it return error"OutOfMemory,Java Heap size"both in client and server side.

I have been increased both client and server side JVM setting by -Xms 512m -Xmx1024m.Finally it failed.

Searching throught the internet,seems no solution yet. are there any other alternatives to upload large file to alfresco ? such as config xml file,etc

Thanks!

alvis
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
WebScripts are better suited to uploading large files rather than WebServices.

alvisccc
Champ in-the-making
Champ in-the-making
WebScripts are better suited to uploading large files rather than WebServices.

Hello mrogers,

I have no idea on webscript  using  in alfresco,can you give me some hits.can it be run in server side or single java program? thank you so much!

treqx
Champ in-the-making
Champ in-the-making
You can also use the upload servlet described here