I couldn’t find articles match to my requirements.
Basically, what I want is that:
- User uploads picture to the application from their local drive.
- Application stores the picture uploaded to datastore.
- Application retrieves images from datastore.
Any suggestions? Urgent.
You can do this in much the same way as you would in any other framework or platform: Create an HTML form with a ‘file’ input and the mimetype set to ‘multipart/form-data’. On the server side, extract the file data from the form field (using
self.request.POST['fieldname'].valuein webapp) and store the contents in a datastore model, in adb.BlobPropertyfield.