Jump to content
We've recently updated our Privacy Statement, available here ×

Mongo DB - Showing content from a Binary field


martin.borugadda

Recommended Posts

I'm using JasperSoft Studio. I'm trying to load data through MongoDb connector. After providing a query, I'm able to read fields for all but one Binary field.

 

The database has a field of the type Binary, and it is being read into JasperServer as of type "[b", and the report doesn't preview throwing the following error.

"java.lang.ClassNotFoundException: [L; --- net.sf.jasperreports.engine.design.JRDesignField@4ffd8408"

 

If I manually change the field to org.bson.types.Binary, I get the following error

"net.sf.jasperreports.engine.JRException: org.bson.json.JsonParseException: JSON reader expected a string but found '{'."

 

How can I read /parse the binary field successfully?
    

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...