You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Shail <sh...@boku.com> on 2014/11/21 20:28:13 UTC

PGP Decryption Out of Memory for large file

Hi,

I'm using camel ver 2.14.0 in our application. We download the file from
sftp server and then process it. The file is pgp encrypted using gpg tool. I
can stream download from the sftp site, so I dont have issue downloading
large files. However, when I try to decrypt using pgp() function, it throws
out of memory error. If I try with smaller size file, it works fine. 

So, I wanted to check if there any way to stream large encrypted file for
unmarshalling using pgp?

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/PGP-Decryption-Out-of-Memory-for-large-file-tp5759485.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: PGP Decryption Out of Memory for large file

Posted by Franz Paul Forsthofer <em...@googlemail.com>.
Hello Shail,

please try camel stream caching. See http://camel.apache.org/stream-caching.html

Regards Franz

On Fri, Nov 21, 2014 at 8:28 PM, Shail <sh...@boku.com> wrote:
> Hi,
>
> I'm using camel ver 2.14.0 in our application. We download the file from
> sftp server and then process it. The file is pgp encrypted using gpg tool. I
> can stream download from the sftp site, so I dont have issue downloading
> large files. However, when I try to decrypt using pgp() function, it throws
> out of memory error. If I try with smaller size file, it works fine.
>
> So, I wanted to check if there any way to stream large encrypted file for
> unmarshalling using pgp?
>
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/PGP-Decryption-Out-of-Memory-for-large-file-tp5759485.html
> Sent from the Camel - Users mailing list archive at Nabble.com.