google app engine - Facing Issue in uploading image byte stream blob store via cloudstorage using python -


here code i'm using upload image (sent mobile device in api call). blob key after upload when check image in cloud-storage, error saying image cannot displayed contains error.

gcs.open(filename,'w',content_type='image/jpeg') gcs_file.write(data.encode('utf-8')) gcs_file.close()     blobstore_filename = '/gs' + filename blob_key = blobstore.create_gs_key(blobstore_filename) 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -