How can I upload blob files to Google App Engine?

I have a model in which * I want * to contain an image frame. I have images on my local file system, but due to the nature of my application I need to get them in the data store. Here is my model:

class JeanImage(db.Model):
    type = db.StringProperty(required=True, choices=set(["main","front","back","detail"]))
    image = db.BlobProperty(required=True)

I have not tried anything yet, because I am not very good at understanding images.

How can / need to convert my images into drops so that I can get them in my csv bulkupload file?

Mark

+3
source share
2 answers

You can do this, just not with a bulk loader. You need to access the remote api directly.

, : http://www.billkatz.com/2009/2/Remote-API-Hello-World

.

: http://code.google.com/appengine/articles/remote_api.html

+1

, , , .

. , zip , . , (, ).

0

Source: https://habr.com/ru/post/1706846/


All Articles