You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi,
I'm very new to mongoDb, we would like to store files using the Java
drivers in mongoDb to help manage files rather than using the file
system.
Currently we have a process which Encrypts files using Bouncycastle
and then storing the files on the file system.
We would like to get away from the file system and store the encrypted
files in mongoDb but having a few issues with heap space errors with
large files.
Is there any way of writing the Bouncycastle OutputStream directly
into mongoDb using GridFs?
For testing we currently get the OutputStream from BC then convert it
to an InputStream then use GridFs.createFile(InputStream is) to store
the file.
Is there any easier way of doing this process?
Regards,
Matt
Alvin Richards
unread,
Sep 21, 2010, 7:37:39 AM9/21/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
When you create a new file object in GridFS, one constructor accepts
an InputStream