Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve data from MongoDB
#1
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?
Reply
#2
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?
Reply
#3
Have you looked at this or this?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  swapping data in mongodb saisankalpj 0 730 Aug-30-2022, 12:42 PM
Last Post: saisankalpj
  Code to retrieve data from a website charlie13255 0 977 Jul-07-2022, 07:53 PM
Last Post: charlie13255
Exclamation MongoDB cannot connect - pymongo speedev 1 2,083 Aug-21-2021, 01:35 PM
Last Post: ndc85430
Bug Djongo (mongoDb) - Django rest framework Problem with search on JsonFields grzybekrafal 0 2,463 May-11-2021, 09:04 AM
Last Post: grzybekrafal
  Retrieve data from oscilloscope using pyserial on ubuntu jte350 3 2,820 Apr-29-2021, 04:36 PM
Last Post: jte350
  find a string in a field in MongoDB Leon79 2 2,410 Jul-19-2020, 09:20 PM
Last Post: menator01
  insert more data at once in MongoDB Leon79 2 2,340 Jul-05-2020, 01:34 PM
Last Post: Leon79
  Regex to retrieve data from json in script tag. DreamingInsanity 4 9,554 Dec-20-2019, 06:18 PM
Last Post: DreamingInsanity
  Load JSON file data into mongodb using pymongo klllmmm 1 11,856 Jun-28-2019, 12:47 AM
Last Post: klllmmm
  Retrieve data from Terminal output or from an ASE variable. DreamingInsanity 0 2,209 Jul-08-2018, 05:51 PM
Last Post: DreamingInsanity

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020