I have a Card Class.
class Card(db.Model):
name = db.StringProperty(required = True)
image = '''insert property here'''
description = db.TextProperty(required = True)
submitted = db.DateTimeProperty(auto_now_add = True)
How do I add an image to the class?
For binary data, you can use a
BlobProperty(see docs here), making your code:You could then assign to your property as follows (assuming your image parameter from a user form is
image; if not using a form, you can treat the image like you would other binary data):