Hi,
Our recent Best Practices Analyzer (BPA) report highlighted multiple instances where we use java.io.InputStream APIs for general I/O operations, including file reading (e.g., using BufferedReader or InputStreamReader) and handling network streams (e.g., processing HTTP responses).
We are preparing to implement the Direct Binary Upload mechanism DG | Adobe Experience Manager in AEM to replace our current use of java.io.InputStream.
We would appreciate guidance or shared experiences from anyone who has already successfully transitioned to this cloud-native, recommended approach.
TIA
Solved! Go to Solution.
Views
Replies
Total Likes
References:
Developer references for Assets , Bulk Import Guide
References:
Developer references for Assets , Bulk Import Guide
Thanks @PavanGaddam
Views
Replies
Total Likes
In my personal opinion the general discouragment of the InputStream handling is a bit far far-fetched. It is true that you should avoid reading/writing binary streams from/to the repository, when you don't know for sure how large these binaries can get. Too often the implementation consumes the entire stream and holds the result in a single byte array, which can consume the entire heap, leading to stability issues.
On the other hand side, reading the input stream of requests / writing to the output stream of responses is possible and no problem.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies