You’re still going to need to remove the prefix. What remains is presumably base64 encoded text. You’d do something like this to get the bytes back out of it:
BlobMedia('image/png', base64.b64decode(base64str))
You’re still going to need to remove the prefix. What remains is presumably base64 encoded text. You’d do something like this to get the bytes back out of it:
BlobMedia('image/png', base64.b64decode(base64str))