phax / as2-lib

A generic Java AS2 library, servlet and server
107 stars 43 forks source link

Large files #37

Closed zharpaz-bmc-com closed 6 years ago

zharpaz-bmc-com commented 6 years ago

Hi Philip,

It seems that the issue with large files comes from HttpUrlConnection. The OutputStream that is obtained from it stores all data in memory and only at the end writes it to the socket. I would like to add the possibility to work with Apache HttpClient that supports streaming without holding all data in memory. What do you think? Thanks, Ziv

phax commented 6 years ago

Hi Ziv, in general this is a good idea, and I already tried that myself. The issue is, the "socket only" connection currently used from the "as2-server". That most likely implies huge changes there as well. // Philip

zharpaz-bmc-com commented 6 years ago

I see... I will look at receiving in a servlet environment, and then decide how to continue with this.