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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -