cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice file upload gives out of memory

msj4u
Champ in-the-making
Champ in-the-making
I am using Java Web-services to upload content into alfresco since my application is in java.

It works perfectly but when I upload a large file say 100MB it gives out of memory.

Inspecting the source code the webservice transporting implementation is converting my whole file into byte array and at alfresco when unloading the file from soap packet the whole byte array is again acquired causing the system to use 2x of byte array.

Am I missing something or am not using it correctly ?

What will happen in case that my end user uploads a video (may be HD quality) as an evidence from my system ?

Thanks in advance.
1 REPLY 1

mrogers
Star Contributor
Star Contributor
This is one of the reasons **NOT** to use SOAP web services.   Its better to use the REST api for big files to avoid this sort of problem.