1 | initial version |
Ah, on the filesystem...
From src/wstore/offerings/offerings_management.py
def _save_encoded_image(path, name, data):
"""
Saves into the filesystem a base64 encoded image
"""
f = open(os.path.join(path, name), "wb")
dec = base64.b64decode(data)
f.write(dec)
f.close()
Any plans to replace this implementation with proper database persistency? MongoDB doesn't get offended by a couple MBs of binary data...