scb
scb

Reputation: 170

Overcoming 1mb file restriction in GAE Datastore

As if for now, we are using datastore blob to store profile images of our site. And there is restriction in Datastore for storing more than 1mb file as a blob in datastore. Is there any work around for this.

Upvotes: 2

Views: 360

Answers (2)

Nick Johnson
Nick Johnson

Reputation: 101149

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.

Upvotes: 0

Thilo
Thilo

Reputation: 262832

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.

Upvotes: 5

Related Questions