Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread branflake2267
Oops, I've been posting some of my notes in the wrong spot. sorry about 
that.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread branflake2267
The cropping is not working for me. I made a new issue for it. I tried and 
got the same response on both the dev and production 1.4.2.

http://code.google.com/p/googleappengine/issues/detail?id=4763

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread branflake2267
This won't work either. I get the same funky colors. So far I think the 
cropping does not work at all. 

leftX = .05D; 
topY = .05D; 
rightX = .10D; 
bottomY = .10D; 

oldImage = ImagesServiceFactory.makeImageFromBlob(new 
BlobKey(fd.getBlobData().getKey())); 
Transform transform = ImagesServiceFactory.makeCrop(leftX, topY, rightX, 
bottomY); 
Image newImage = imagesService.applyTransform(transform, oldImage);

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread branflake2267
Forgot to mention the image service, has what I call 
a thumb-nailing service.

http://code.google.com/appengine/docs/java/images/overview.html#Using%020getServingUrl()

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread branflake2267
Its pretty easy to store the blobkey in the datastore with the parameters 
needed to find the blob in the blobstore, all you then need is that blobkey, 
and serve it from the blobstore, and the only latency you get is for the 
session loading if one is not loaded. Thats what I do for 
http://c.gawkat.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-20 Thread Luca Matteis
I decided to go with datastore since I'll be storing simple thumbnail
images - nothing more than 100kb. I'm a bit afraid of the 30s limit
but I suppose it makes sense for Google. I work for a bioinformatics
group known at global level and I'm trying to show my team the power
of App Engine; hopefully I can give them enough good examples to make
a radical business change happen towards App Engine.

It's funny because some colleagues have doubted the uptime of Google
and disaster recovery scene, saying that we should have in-house
hosting for reliability - but I find it ridiculous because there's a
lot more chance of our in-house network going down rather than Google
going down.

Thanks for your help.
Luca

On 3/19/11, branflake2267  wrote:
> The credit option has a budget and you can set it real low. Its unlikely
> unless you have huge amount of resource use that you'll go over. I've only
> had cents billed on my upload demo due to the amount of data stored.
>
> Brandon Donnelson
> http://gwt-examples.googlecode.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-18 Thread branflake2267
The credit option has a budget and you can set it real low. Its unlikely 
unless you have huge amount of resource use that you'll go over. I've only 
had cents billed on my upload demo due to the amount of data stored.

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Didier Durand
Hi Luca,

1 thing before going in the new code: by using the blobs in datastore,
the interactive time limit (30s) apply (it does not for the blobstore)

I.e., the upload must be finished in 30s after that request is
cancelled by gae.

It may be harder to achieve even if your image is < 1Mb if the
bandwidth is low: mobile, etc..

regards

didier

On Mar 11, 11:21 pm, Jeff Knox  wrote:
> The datastore works well for storing images (assuming they are < 1MB). So
> far I haven't had more than about 15 images in the database but I don't
> think that really matters in terms of speed. My images are 1000 pixels in
> their longest dimension.
>
> I am also using the image API to do some manipulations. Passing the data
> around has been very quick and relatively painless.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Jeff Knox
The datastore works well for storing images (assuming they are < 1MB). So 
far I haven't had more than about 15 images in the database but I don't 
think that really matters in terms of speed. My images are 1000 pixels in 
their longest dimension.

I am also using the image API to do some manipulations. Passing the data 
around has been very quick and relatively painless.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Ikai Lan (Google)
Yes, but not if you want to allow uploads.

If you enter your credit card, we will not charge it unless you go over the
free quota, even for blobstore. Based on your questions, however, I would
suggest further reading of the documentation to understand the limitations
and capabilities of App Engine, as we do describe the billing required
features. There's no way for us to know in the SDK whether you are billing
enabled or not, so it wouldn't make sense to put a nag screen for most users
that will just enable billing.

http://code.google.com/appengine/docs/quotas.html#Blobstore

Based on your feedback, however, we should probably mention that blobstore
is billing enabled on this page:

http://code.google.com/appengine/docs/python/blobstore/overview.html

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Fri, Mar 11, 2011 at 9:35 AM, Luca Matteis  wrote:

> Is it possible to store the image directly on disk, as a resource?
>
> On 3/11/11, Simon Knott  wrote:
> > The datastore can handle blobs with a maximum size of 1MB, whereas the
> > blobstore can handle blobs of 2GB.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> google-appengine-java@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Luca Matteis
Is it possible to store the image directly on disk, as a resource?

On 3/11/11, Simon Knott  wrote:
> The datastore can handle blobs with a maximum size of 1MB, whereas the
> blobstore can handle blobs of 2GB.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Simon Knott
The datastore can handle blobs with a maximum size of 1MB, whereas the 
blobstore can handle blobs of 2GB.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.