Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Large document storage #5

Open
precipice opened this issue Jan 6, 2010 · 1 comment
Open

Large document storage #5

precipice opened this issue Jan 6, 2010 · 1 comment

Comments

@precipice
Copy link
Member

I wonder if it would be worthwhile to have a way to store larger documents outside of the database -- e.g., PDFs (such as transaction attachments).

@codahale
Copy link
Contributor

codahale commented Jan 7, 2010

If you set the max_allowed_packet option for the JDBC driver, Grendel should be able to handle huge files. I'd need to change Document's handling of bodies from byte[] to InputStream, change Document's decryption code to output a stream, and have DocumentResource#show() return a StreamingOutput of the decrypted document.

That said, I think OpenPGP messages would require the entire document to be buffered while the signature is verified. No way to get it to not fit into memory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants