Large document storage
Opened this issue · 1 comments
precipice commented
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 commented
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.