Webservice file upload gives out of memory
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2013 09:32 AM
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2013 10:23 AM
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.
