1) How to convert an uploaded graphic file or resume to a blob field -
to avoid this error:
BadValueError: Property resume must be convertible to a Blob instance
(Blob() argument should be str instance, not unicode)
Form:
<input type="file" name="resume" />
<input type="file" name="photo" />
Server Code:
mytable = MyTable()
#now set fields from the user's form data
mytable.resume = self.request.get('resume') # this
line blows up with BadValueError above.
mytable.photo = self.request.get("photo')
2) Once I have a picture stored in BigTable, how would I display it
again, as a picture, on a web page? A call to some graphics
library?
Thanks,
Neal Walters
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---