Research Log of Web Science Students

Computer Science is not simply programming

Does Google App Engine allow storing of files?

leave a comment »

The first thing about that is NO because there is no file system in App Engine.

files-appengine

But there is a way around it. You can store your files as blobs.

files-appengine2

But that code above is for Python. In Java there is the com.google.appengine.api.datastore.Blob

files-appengine3

This is unlike the short blob which has a limit of 500 bytes (<.5kb) if it is to be stored in the datastore.

files-appengine4

Nothing specific is said about the Blob type.  But we can work around the assumption that we can’t upload a file that is “very big” — very big enough for it not upload within the 30 second allotment for each request sent to their servers:

files-appengine5

I think though it’s safe to assume that for anything you want to store in the datastore, the limit is 1MB.

files-appengine6

Images can be uploaded too  if you’re going to use Java’s image manipulation services in GAE. The limit is also 1 MB.

Advertisements

Written by Jose Asuncion

September 22, 2009 at 5:12 pm

Posted in Hardwire

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: