I'm retrieving a Base64 encoded image from a webservice and trying to upload it to Cloudinary. I've tried a number of avenues to attempt the upload and all have seemed to fail.
So here was my first attempt. The error is: "TypeError: file() argument 1 must be encoded string without NULL bytes, not str"
#!/usr/bin/env python
import urllib2
import xml.dom.minidom
import base64