Python Forum
Retrieve data from MongoDB - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Retrieve data from MongoDB (/thread-29247.html)



Mongoengine Binary Data Read - dsuk - Aug-24-2020

I saved some data in mongodb using mongoengine. That binary field look like this
{ "$binary": "/9j/4QA4.........ldfl==", "$type": "00"}
I need read / retrieve only that $binary part using mongoengine? How to do that?


Retrieve data from MongoDB - Madoo - Aug-24-2020

I'm beginner for python programming. I'm developing a little python program and mongodb use as a database with mongoengine. In my program I stored data in mongodb collection coreectly without any error. Now I want to use that stored data for some processes. As a example in my case I stored some binary data and It stored in mongodb collection named user as {"propic"{"$binary": {"base64": "/9j/4AAQS........iigAooooAKKKKAP/2Q==","subType": "00"}}}. So I need get the data inside "base64" for a some process. How to do that?


RE: Retrieve data from MongoDB - micseydel - Aug-24-2020

Have you looked at this or this?