MongoDB GridFS and Jaspersoft

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

I have profile pictures for users stored in GridFS within our MongoDB.  I would like to display these images within my Jaspersoft Studio reports from MongoDB GridFS.  I have tried a lot of various class types on both the binary field from the Mongo document and on my image in the report and continually get various errors.

How do I display gridFS images on a jaspersoft report through studio (I'm using 6.1 currently)?

landon.isaacs985's picture
Joined: Jun 23 2015 - 4:29am
Last seen: 3 years 1 week ago

2 Answers:

I have not tried it but looking at the mongo Driver (which is the one used by JSS) the file class should bcom.mongodb.gridfs.GridFSDBFile

See: http://api.mongodb.org/java/current/com/mongodb/gridfs/GridFSDBFile.html

marianol's picture
12146
Joined: Sep 13 2011 - 8:04am
Last seen: 3 years 9 months ago

Would I apply this class to the chunk binary string or the filename from the files collection?

landon.isaacs985's picture
Joined: Jun 23 2015 - 4:29am
Last seen: 3 years 1 week ago
Feedback
randomness