I have a mongodb collection that looks something like this:
{
u'_id': u'someid',
u'files': {u'screenshot': Binary('\x89PNG\r\n\x1a\n\...', 0)}
}
The screenshot is in a binary format and I would like to display it. How would I do this in python?
I've setup a connection to the database with pymongo but I have no idea how I can decode the bytestream. Bear in mind that I did not create this database, I only have access to it.