Overcoming 1mb file restriction in GAE Datastore
As if for now, we are using datastore blob to store profile images of our site. And ther开发者_如何学Pythone is restriction in Datastore for storing more than 1mb file as a blob in datastore. Is there any work around for this.
You could use the Blobstore.
Google App Engine includes the Blobstore service, which allows apps to serve data objects that can be up to 2 gigabytes in size. These objects are called Blobstore values, or blobs. Blobstore values are served as responses from request handlers and are created as uploads via web forms. Apps do not create blob data directly; instead, blobs are created indirectly, by a submitted web form or other HTTP POST request. Blobstore values can be served to the user, or accessed by the app in a file-like stream, using the Blobstore API.
You could work around this by splitting the blob into multiple pieces and storing them in separate entities. What you should do, though, is use the Blobstore as @Thilo suggests.
精彩评论