Mongodb cannot desearialize binary data
Question

Hello

 I have a Mongodb database in which I store images as binary data that I can't manage to desialize to a structure.

I think the problem may be that the document returns the JSON with the image in the form "new BinData(0, "/9j/4AAQS ...") which is not able to deserialize.


Any idea how to solve this?

captura1.png

mvp_badge
MVP

Hi Pepe,

How do you connect to the Mongo database?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.