Content Services (ECM)
Process Services (BPM)
Application Development Framework
Digital Business Platform
Announcements & Opportunities
Alfresco Ambassador Program
Alfresco Content Services (ECM)
to create and rate content, and to follow, bookmark, and share content with other members. Not a member?
Upload & Download large files to and from the repository
Question asked by
on Feb 23, 2014
on Feb 25, 2014 by afaust
Show 0 Likes
I have large files to be uploaded and downloaded to and from the repository, Is there any any way in Alfresco to do that instead of converting them to array of bytes?
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Feb 25, 2014 9:56 AM
I don't quite understand the question / necessity to handle download / uploads manually. There are already good upload / download handlers / web scripts in Alfresco out of the box.
In regards to the core of your question: No matter how you work with files, all methods deal with arrays of bytes, because that is what files ultimately are - streams of bytes. You can use the standard Input-/OutputStream abstractions via the ContentReader/ContentWriter interfaces of Alfresco to stream the bytes without you having to handle arrays of bytes yourself. Of course this requires you have a streamable input / output in the request you are processing. When using HTTP (via Servlet or Web Script) you have the Input-/OutputStream of the HTTP request.
Show 0 Likes
Retrieving data ...
The new deployment using Kubernetes + Helm
Alfresco Certification Program Update
How to integrate users picker control with OOTB ftl?
Issue in Alfresco SDK 3.0.1 set-up [RESOLVED]