clojure-clutch/clutch — Issue #48: attachments as byte-arrays
Author: dehubbed
Created: 2012-02-22 13:34:36+00:00
State: open

feature request: can attachments please be allowed to be byte arrays in addition to InputStream, String etc. internally clutch converts them to byte arrays anyways and right now I have to convert byte arrays to InputStreams to supply them to update-attachment/put-document only to have the implementation convert them back to byte arrays anyways.

the rationale is also here that data is included as attachments not necessarily because it is voluminous or a file on disk, but because it is binary. some of my attachments are digital signatures which are only 128 bytes long. I prefer to have them as attachment in place of e.g. base64 encoded data as I can take advantage of clutch presenting them as binary data (input streams or byte arrays, see above) and e.g. Futon doesn't clutter my screen with oodles of base64 encoded data.