[appengine-java] Re: Photo and Video services

2009-12-07 Thread James H
Excellent, look forward to trying it out!

On Dec 3, 4:35 pm, Vince Bonfanti  wrote:
> I just committed the code to add support for the If-Modified-Since request
> header (and the Last-Modified and Content-Length response headers). It'll be
> in the next GaeVFS release, which will happen after SDK 1.2.8 is released to
> production.
>
> BTW, the way this works is that the client simply takes the value from the
> Last-Modified response header and sends it back as the If-Modified-Since
> request header, so there's no need to worry about synchronization between
> client time and server time. I tested on Chrome, IE8, and Firefox (all on
> Windows).
>
> Thanks for the info.
>
> Vince
>
> On Fri, Nov 27, 2009 at 12:56 PM, James H wrote:
>
>
>
> > Here's some legwork...you can drill-down to section 14.25 of the page
> > below where it describes the If-Modified-Since header.  Basically, any
> > Get with this header including a timestamp can be compared to the
> > timestamp for the matching Entity to determine whether to respond
> > normally (return the image) or respond with a 304 (Not modified)
> > response.  I think the trick is determining the compare granualarity
> > since the server time and the client time are never exactly in sync.
> > Perhaps the granularity for comparison should be down to the minute,
> > not seconds and definitely not millisecond.  What do you think?
>
> >http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html
>
> > On Oct 23, 10:08 am, Vince Bonfanti  wrote:
> > > No, not yet. It's on the TODO list (see line 171 of the GaeVfsServlet
> > > source code). If you--or anyone else--wants to add this I'll be happy
> > > to accept a patch.
>
> > > Vince
>
> > > On Fri, Oct 23, 2009 at 11:42 AM, Diana Cruise 
> > wrote:
>
> > > > In terms of performance does gaevfs accmmodate http resource timestamp
> > > > checks to avoid re-downloading repeated requests for the same images?-
> > Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

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-j...@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: Photo and Video services

2009-12-03 Thread Vince Bonfanti
I just committed the code to add support for the If-Modified-Since request
header (and the Last-Modified and Content-Length response headers). It'll be
in the next GaeVFS release, which will happen after SDK 1.2.8 is released to
production.

BTW, the way this works is that the client simply takes the value from the
Last-Modified response header and sends it back as the If-Modified-Since
request header, so there's no need to worry about synchronization between
client time and server time. I tested on Chrome, IE8, and Firefox (all on
Windows).

Thanks for the info.

Vince

On Fri, Nov 27, 2009 at 12:56 PM, James H wrote:

> Here's some legwork...you can drill-down to section 14.25 of the page
> below where it describes the If-Modified-Since header.  Basically, any
> Get with this header including a timestamp can be compared to the
> timestamp for the matching Entity to determine whether to respond
> normally (return the image) or respond with a 304 (Not modified)
> response.  I think the trick is determining the compare granualarity
> since the server time and the client time are never exactly in sync.
> Perhaps the granularity for comparison should be down to the minute,
> not seconds and definitely not millisecond.  What do you think?
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html
>
> On Oct 23, 10:08 am, Vince Bonfanti  wrote:
> > No, not yet. It's on the TODO list (see line 171 of the GaeVfsServlet
> > source code). If you--or anyone else--wants to add this I'll be happy
> > to accept a patch.
> >
> > Vince
> >
> >
> >
> > On Fri, Oct 23, 2009 at 11:42 AM, Diana Cruise 
> wrote:
> >
> > > In terms of performance does gaevfs accmmodate http resource timestamp
> > > checks to avoid re-downloading repeated requests for the same images?-
> Hide quoted text -
> >
> > - Show quoted text -
>
>

--

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-j...@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: Photo and Video services

2009-11-27 Thread James H
Here's some legwork...you can drill-down to section 14.25 of the page
below where it describes the If-Modified-Since header.  Basically, any
Get with this header including a timestamp can be compared to the
timestamp for the matching Entity to determine whether to respond
normally (return the image) or respond with a 304 (Not modified)
response.  I think the trick is determining the compare granualarity
since the server time and the client time are never exactly in sync.
Perhaps the granularity for comparison should be down to the minute,
not seconds and definitely not millisecond.  What do you think?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html

On Oct 23, 10:08 am, Vince Bonfanti  wrote:
> No, not yet. It's on the TODO list (see line 171 of the GaeVfsServlet
> source code). If you--or anyone else--wants to add this I'll be happy
> to accept a patch.
>
> Vince
>
>
>
> On Fri, Oct 23, 2009 at 11:42 AM, Diana Cruise  
> wrote:
>
> > In terms of performance does gaevfs accmmodate http resource timestamp
> > checks to avoid re-downloading repeated requests for the same images?- Hide 
> > quoted text -
>
> - Show quoted text -

--

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-j...@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: Photo and Video services

2009-10-23 Thread Vince Bonfanti

No, not yet. It's on the TODO list (see line 171 of the GaeVfsServlet
source code). If you--or anyone else--wants to add this I'll be happy
to accept a patch.

Vince

On Fri, Oct 23, 2009 at 11:42 AM, Diana Cruise  wrote:
>
> In terms of performance does gaevfs accmmodate http resource timestamp
> checks to avoid re-downloading repeated requests for the same images?
>

--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-23 Thread Diana Cruise

In terms of performance does gaevfs accmmodate http resource timestamp
checks to avoid re-downloading repeated requests for the same images?

On Oct 22, 8:22 pm, Vince Bonfanti  wrote:
> That's the most GAE will let you upload in one request (for now).
> Again, there's a "Service for storing and serving large files" feature
> on the roadmap, but the details of this feature have not be revealed.
>
> Vince
>
>
>
> On Thu, Oct 22, 2009 at 7:40 PM, Diana Cruise  
> wrote:
>
> > What is the nature of the 10Mb limit again?
>
> > On Oct 22, 6:38 pm, Diana Cruise  wrote:
> >> Yes, that worked ok from another system so it must be an IE7
> >> problem...good catch!
>
> >> On Oct 22, 5:55 pm, Vince Bonfanti  wrote:
>
> >> > Can you try a different browser? From the logs it looks like you're
> >> > using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
> >> > Windows) and they all worked fine. Something about the path being sent
> >> > by the browser is causing the error--if we can narrow it to IE7 then I
> >> > can investigate further.
>
> >> > The only "degradation" I've ever seen is that larger files take longer
> >> > to download, which you'd expect. However, I've never done any real
> >> > load or stress testing.
>
> >> > Vince
>
> >> > On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise  
> >> > wrote:
>
> >> > > Actually, I tried simple files without spaces also and they failed
> >> > > too.  When I hit your photo I noticed execellent response time...have
> >> > > you noticed any particular degradation when displaying lists of
> >> > > photos, for example?
>
> >> > > On Oct 22, 3:58 pm, Diana Cruise  wrote:
> >> > >> Thanks Baz.
>
> >> > >> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
> >> > >> or /gaevfs/images/mypic, then selected a local small photo.  On
> >> > >> submitting the form, received the 500 error...perhaps the photo had
> >> > >> spaces in the name?
>
> >> > >> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>
> >> > >> > You were unable to upload a small photo on my demo site, or in your
> >> > >> > development environment? I just successfully uploaded an image to 
> >> > >> > the
> >> > >> > demo site, which you can download from here:
>
> >> > >> >    http://gaevfs.appspot.com/gaevfs/images/
>
> >> > >> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> >> > >> > implements a virtual file system, so you refer to the file using URL
> >> > >> > links, just as you would for a static file. For example, here's an
> >> > >> > image I just uploaded:
>
> >> > >> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>
> >> > >> > The GaeVfsServlet handles both upload and download, and demonstrates
> >> > >> > how this is done:
>
> >> > >> >    
> >> > >> > http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>
> >> > >> > The GaeVfsServlet also handles setting the content type for the 
> >> > >> > response.
>
> >> > >> > Vince
>
> >> > >> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise 
> >> > >> >  wrote:
>
> >> > >> > > Vince, I was unable to upload small photos...getting error code 
> >> > >> > > 500!
>
> >> > >> > > What is the basic principle behind this solution?  It appears you 
> >> > >> > > are
> >> > >> > > storing the file in datastore in increments of 1M or less...along 
> >> > >> > > the
> >> > >> > > lines of what Raphael was getting at.  How do you display a list 
> >> > >> > > of
> >> > >> > > images from the datastore on a webpage?
>
> >> > >> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> >> > >> > >> Hi Diana,
>
> >> > >> > >> I've created GaeVFS to solve this problem:
>
> >> > >> > >>    http://code.google.com/p/gaevfs/
>
> >> > >> > >> You can view a demonstration here:
>
> >> > >> > >>    http://gaevfs.appspot.com/
>
> >> > >> > >> Note that the current released version (0.3) will only upload 
> >> > >> > >> about
> >> > >> > >> 2.0MB before timing out; the latest code in SVN will support the 
> >> > >> > >> full
> >> > >> > >> 10.0MB allowed by Google App Engine.
>
> >> > >> > >> There's a feature on the roadmap called "Service for storing and
> >> > >> > >> serving large files," but there's apparently no additional 
> >> > >> > >> information
> >> > >> > >> available on this feature:
>
> >> > >> > >>    http://code.google.com/appengine/docs/roadmap.html
>
> >> > >> > >> Vince
>
> >> > >> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
> >> > >> > >>  wrote:
>
> >> > >> > >> > What options do I have in GAE to allow Users to upload, store, 
> >> > >> > >> > and
> >> > >> > >> > view media (photos, video, audio, etc) from my within my 
> >> > >> > >> > application?
>
> >> > >> > >> > Is there a special data type in datastore that would be used 
> >> > >> > >> > to store
> >> > >> > >> > media?  If I store a media item in datastore then how do I 
> >> > >> > >> > display it
> >> > >> > >> > to the User?  In a regular app server, I would do this as a 
> >> > >> > >> > static
> >> > >> > >> > file reference where I first 

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Vince Bonfanti

That's the most GAE will let you upload in one request (for now).
Again, there's a "Service for storing and serving large files" feature
on the roadmap, but the details of this feature have not be revealed.

Vince

On Thu, Oct 22, 2009 at 7:40 PM, Diana Cruise  wrote:
>
> What is the nature of the 10Mb limit again?
>
> On Oct 22, 6:38 pm, Diana Cruise  wrote:
>> Yes, that worked ok from another system so it must be an IE7
>> problem...good catch!
>>
>> On Oct 22, 5:55 pm, Vince Bonfanti  wrote:
>>
>>
>>
>> > Can you try a different browser? From the logs it looks like you're
>> > using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
>> > Windows) and they all worked fine. Something about the path being sent
>> > by the browser is causing the error--if we can narrow it to IE7 then I
>> > can investigate further.
>>
>> > The only "degradation" I've ever seen is that larger files take longer
>> > to download, which you'd expect. However, I've never done any real
>> > load or stress testing.
>>
>> > Vince
>>
>> > On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise  
>> > wrote:
>>
>> > > Actually, I tried simple files without spaces also and they failed
>> > > too.  When I hit your photo I noticed execellent response time...have
>> > > you noticed any particular degradation when displaying lists of
>> > > photos, for example?
>>
>> > > On Oct 22, 3:58 pm, Diana Cruise  wrote:
>> > >> Thanks Baz.
>>
>> > >> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
>> > >> or /gaevfs/images/mypic, then selected a local small photo.  On
>> > >> submitting the form, received the 500 error...perhaps the photo had
>> > >> spaces in the name?
>>
>> > >> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>>
>> > >> > You were unable to upload a small photo on my demo site, or in your
>> > >> > development environment? I just successfully uploaded an image to the
>> > >> > demo site, which you can download from here:
>>
>> > >> >    http://gaevfs.appspot.com/gaevfs/images/
>>
>> > >> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
>> > >> > implements a virtual file system, so you refer to the file using URL
>> > >> > links, just as you would for a static file. For example, here's an
>> > >> > image I just uploaded:
>>
>> > >> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>>
>> > >> > The GaeVfsServlet handles both upload and download, and demonstrates
>> > >> > how this is done:
>>
>> > >> >    
>> > >> > http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>>
>> > >> > The GaeVfsServlet also handles setting the content type for the 
>> > >> > response.
>>
>> > >> > Vince
>>
>> > >> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise 
>> > >> >  wrote:
>>
>> > >> > > Vince, I was unable to upload small photos...getting error code 500!
>>
>> > >> > > What is the basic principle behind this solution?  It appears you 
>> > >> > > are
>> > >> > > storing the file in datastore in increments of 1M or less...along 
>> > >> > > the
>> > >> > > lines of what Raphael was getting at.  How do you display a list of
>> > >> > > images from the datastore on a webpage?
>>
>> > >> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
>> > >> > >> Hi Diana,
>>
>> > >> > >> I've created GaeVFS to solve this problem:
>>
>> > >> > >>    http://code.google.com/p/gaevfs/
>>
>> > >> > >> You can view a demonstration here:
>>
>> > >> > >>    http://gaevfs.appspot.com/
>>
>> > >> > >> Note that the current released version (0.3) will only upload about
>> > >> > >> 2.0MB before timing out; the latest code in SVN will support the 
>> > >> > >> full
>> > >> > >> 10.0MB allowed by Google App Engine.
>>
>> > >> > >> There's a feature on the roadmap called "Service for storing and
>> > >> > >> serving large files," but there's apparently no additional 
>> > >> > >> information
>> > >> > >> available on this feature:
>>
>> > >> > >>    http://code.google.com/appengine/docs/roadmap.html
>>
>> > >> > >> Vince
>>
>> > >> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
>> > >> > >>  wrote:
>>
>> > >> > >> > What options do I have in GAE to allow Users to upload, store, 
>> > >> > >> > and
>> > >> > >> > view media (photos, video, audio, etc) from my within my 
>> > >> > >> > application?
>>
>> > >> > >> > Is there a special data type in datastore that would be used to 
>> > >> > >> > store
>> > >> > >> > media?  If I store a media item in datastore then how do I 
>> > >> > >> > display it
>> > >> > >> > to the User?  In a regular app server, I would do this as a 
>> > >> > >> > static
>> > >> > >> > file reference where I first transfer the data from the database 
>> > >> > >> > to a
>> > >> > >> > file accessible under webroot (if it is not already present).  
>> > >> > >> > But in
>> > >> > >> > GAE the application can NOT create files in the static area due 
>> > >> > >> > to
>> > >> > >> > permissions...so is there another technique to accomplish this?
>>
>> > >> > >> > Would videos best be served indire

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Bassil Karam
Size of a single request.



On Thu, Oct 22, 2009 at 4:40 PM, Diana Cruise wrote:

>
> What is the nature of the 10Mb limit again?
>
> On Oct 22, 6:38 pm, Diana Cruise  wrote:
> > Yes, that worked ok from another system so it must be an IE7
> > problem...good catch!
> >
> > On Oct 22, 5:55 pm, Vince Bonfanti  wrote:
> >
> >
> >
> > > Can you try a different browser? From the logs it looks like you're
> > > using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
> > > Windows) and they all worked fine. Something about the path being sent
> > > by the browser is causing the error--if we can narrow it to IE7 then I
> > > can investigate further.
> >
> > > The only "degradation" I've ever seen is that larger files take longer
> > > to download, which you'd expect. However, I've never done any real
> > > load or stress testing.
> >
> > > Vince
> >
> > > On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise <
> diana.l.cru...@gmail.com> wrote:
> >
> > > > Actually, I tried simple files without spaces also and they failed
> > > > too.  When I hit your photo I noticed execellent response time...have
> > > > you noticed any particular degradation when displaying lists of
> > > > photos, for example?
> >
> > > > On Oct 22, 3:58 pm, Diana Cruise  wrote:
> > > >> Thanks Baz.
> >
> > > >> Vince, I hit your demo site and just entered a path like
> /gaevfs/mypic
> > > >> or /gaevfs/images/mypic, then selected a local small photo.  On
> > > >> submitting the form, received the 500 error...perhaps the photo had
> > > >> spaces in the name?
> >
> > > >> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
> >
> > > >> > You were unable to upload a small photo on my demo site, or in
> your
> > > >> > development environment? I just successfully uploaded an image to
> the
> > > >> > demo site, which you can download from here:
> >
> > > >> >http://gaevfs.appspot.com/gaevfs/images/
> >
> > > >> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> > > >> > implements a virtual file system, so you refer to the file using
> URL
> > > >> > links, just as you would for a static file. For example, here's an
> > > >> > image I just uploaded:
> >
> > > >> >http://gaevfs.appspot.com/gaevfs/images/img4.jpg
> >
> > > >> > The GaeVfsServlet handles both upload and download, and
> demonstrates
> > > >> > how this is done:
> >
> > > >> >
> http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
> >
> > > >> > The GaeVfsServlet also handles setting the content type for the
> response.
> >
> > > >> > Vince
> >
> > > >> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise <
> diana.l.cru...@gmail.com> wrote:
> >
> > > >> > > Vince, I was unable to upload small photos...getting error code
> 500!
> >
> > > >> > > What is the basic principle behind this solution?  It appears
> you are
> > > >> > > storing the file in datastore in increments of 1M or
> less...along the
> > > >> > > lines of what Raphael was getting at.  How do you display a list
> of
> > > >> > > images from the datastore on a webpage?
> >
> > > >> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> > > >> > >> Hi Diana,
> >
> > > >> > >> I've created GaeVFS to solve this problem:
> >
> > > >> > >>http://code.google.com/p/gaevfs/
> >
> > > >> > >> You can view a demonstration here:
> >
> > > >> > >>http://gaevfs.appspot.com/
> >
> > > >> > >> Note that the current released version (0.3) will only upload
> about
> > > >> > >> 2.0MB before timing out; the latest code in SVN will support
> the full
> > > >> > >> 10.0MB allowed by Google App Engine.
> >
> > > >> > >> There's a feature on the roadmap called "Service for storing
> and
> > > >> > >> serving large files," but there's apparently no additional
> information
> > > >> > >> available on this feature:
> >
> > > >> > >>http://code.google.com/appengine/docs/roadmap.html
> >
> > > >> > >> Vince
> >
> > > >> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise <
> diana.l.cru...@gmail.com> wrote:
> >
> > > >> > >> > What options do I have in GAE to allow Users to upload,
> store, and
> > > >> > >> > view media (photos, video, audio, etc) from my within my
> application?
> >
> > > >> > >> > Is there a special data type in datastore that would be used
> to store
> > > >> > >> > media?  If I store a media item in datastore then how do I
> display it
> > > >> > >> > to the User?  In a regular app server, I would do this as a
> static
> > > >> > >> > file reference where I first transfer the data from the
> database to a
> > > >> > >> > file accessible under webroot (if it is not already present).
>  But in
> > > >> > >> > GAE the application can NOT create files in the static area
> due to
> > > >> > >> > permissions...so is there another technique to accomplish
> this?
> >
> > > >> > >> > Would videos best be served indirectly via youtube?  If so,
> how do I
> > > >> > >> > know they will NOT be removed prematurely by youtube?
> >
> > > >> > >> > Thanks.- Hide quoted text -
> >
> > > >> > >> - Show quoted

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise

What is the nature of the 10Mb limit again?

On Oct 22, 6:38 pm, Diana Cruise  wrote:
> Yes, that worked ok from another system so it must be an IE7
> problem...good catch!
>
> On Oct 22, 5:55 pm, Vince Bonfanti  wrote:
>
>
>
> > Can you try a different browser? From the logs it looks like you're
> > using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
> > Windows) and they all worked fine. Something about the path being sent
> > by the browser is causing the error--if we can narrow it to IE7 then I
> > can investigate further.
>
> > The only "degradation" I've ever seen is that larger files take longer
> > to download, which you'd expect. However, I've never done any real
> > load or stress testing.
>
> > Vince
>
> > On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise  
> > wrote:
>
> > > Actually, I tried simple files without spaces also and they failed
> > > too.  When I hit your photo I noticed execellent response time...have
> > > you noticed any particular degradation when displaying lists of
> > > photos, for example?
>
> > > On Oct 22, 3:58 pm, Diana Cruise  wrote:
> > >> Thanks Baz.
>
> > >> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
> > >> or /gaevfs/images/mypic, then selected a local small photo.  On
> > >> submitting the form, received the 500 error...perhaps the photo had
> > >> spaces in the name?
>
> > >> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>
> > >> > You were unable to upload a small photo on my demo site, or in your
> > >> > development environment? I just successfully uploaded an image to the
> > >> > demo site, which you can download from here:
>
> > >> >    http://gaevfs.appspot.com/gaevfs/images/
>
> > >> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> > >> > implements a virtual file system, so you refer to the file using URL
> > >> > links, just as you would for a static file. For example, here's an
> > >> > image I just uploaded:
>
> > >> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>
> > >> > The GaeVfsServlet handles both upload and download, and demonstrates
> > >> > how this is done:
>
> > >> >    
> > >> > http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>
> > >> > The GaeVfsServlet also handles setting the content type for the 
> > >> > response.
>
> > >> > Vince
>
> > >> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise 
> > >> >  wrote:
>
> > >> > > Vince, I was unable to upload small photos...getting error code 500!
>
> > >> > > What is the basic principle behind this solution?  It appears you are
> > >> > > storing the file in datastore in increments of 1M or less...along the
> > >> > > lines of what Raphael was getting at.  How do you display a list of
> > >> > > images from the datastore on a webpage?
>
> > >> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> > >> > >> Hi Diana,
>
> > >> > >> I've created GaeVFS to solve this problem:
>
> > >> > >>    http://code.google.com/p/gaevfs/
>
> > >> > >> You can view a demonstration here:
>
> > >> > >>    http://gaevfs.appspot.com/
>
> > >> > >> Note that the current released version (0.3) will only upload about
> > >> > >> 2.0MB before timing out; the latest code in SVN will support the 
> > >> > >> full
> > >> > >> 10.0MB allowed by Google App Engine.
>
> > >> > >> There's a feature on the roadmap called "Service for storing and
> > >> > >> serving large files," but there's apparently no additional 
> > >> > >> information
> > >> > >> available on this feature:
>
> > >> > >>    http://code.google.com/appengine/docs/roadmap.html
>
> > >> > >> Vince
>
> > >> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
> > >> > >>  wrote:
>
> > >> > >> > What options do I have in GAE to allow Users to upload, store, and
> > >> > >> > view media (photos, video, audio, etc) from my within my 
> > >> > >> > application?
>
> > >> > >> > Is there a special data type in datastore that would be used to 
> > >> > >> > store
> > >> > >> > media?  If I store a media item in datastore then how do I 
> > >> > >> > display it
> > >> > >> > to the User?  In a regular app server, I would do this as a static
> > >> > >> > file reference where I first transfer the data from the database 
> > >> > >> > to a
> > >> > >> > file accessible under webroot (if it is not already present).  
> > >> > >> > But in
> > >> > >> > GAE the application can NOT create files in the static area due to
> > >> > >> > permissions...so is there another technique to accomplish this?
>
> > >> > >> > Would videos best be served indirectly via youtube?  If so, how 
> > >> > >> > do I
> > >> > >> > know they will NOT be removed prematurely by youtube?
>
> > >> > >> > Thanks.- Hide quoted text -
>
> > >> > >> - Show quoted text -- Hide quoted text -
>
> > >> > - Show quoted text -- Hide quoted text -
>
> > >> - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this mes

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise

Yes, that worked ok from another system so it must be an IE7
problem...good catch!

On Oct 22, 5:55 pm, Vince Bonfanti  wrote:
> Can you try a different browser? From the logs it looks like you're
> using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
> Windows) and they all worked fine. Something about the path being sent
> by the browser is causing the error--if we can narrow it to IE7 then I
> can investigate further.
>
> The only "degradation" I've ever seen is that larger files take longer
> to download, which you'd expect. However, I've never done any real
> load or stress testing.
>
> Vince
>
>
>
> On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise  
> wrote:
>
> > Actually, I tried simple files without spaces also and they failed
> > too.  When I hit your photo I noticed execellent response time...have
> > you noticed any particular degradation when displaying lists of
> > photos, for example?
>
> > On Oct 22, 3:58 pm, Diana Cruise  wrote:
> >> Thanks Baz.
>
> >> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
> >> or /gaevfs/images/mypic, then selected a local small photo.  On
> >> submitting the form, received the 500 error...perhaps the photo had
> >> spaces in the name?
>
> >> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>
> >> > You were unable to upload a small photo on my demo site, or in your
> >> > development environment? I just successfully uploaded an image to the
> >> > demo site, which you can download from here:
>
> >> >    http://gaevfs.appspot.com/gaevfs/images/
>
> >> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> >> > implements a virtual file system, so you refer to the file using URL
> >> > links, just as you would for a static file. For example, here's an
> >> > image I just uploaded:
>
> >> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>
> >> > The GaeVfsServlet handles both upload and download, and demonstrates
> >> > how this is done:
>
> >> >    
> >> > http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>
> >> > The GaeVfsServlet also handles setting the content type for the response.
>
> >> > Vince
>
> >> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise  
> >> > wrote:
>
> >> > > Vince, I was unable to upload small photos...getting error code 500!
>
> >> > > What is the basic principle behind this solution?  It appears you are
> >> > > storing the file in datastore in increments of 1M or less...along the
> >> > > lines of what Raphael was getting at.  How do you display a list of
> >> > > images from the datastore on a webpage?
>
> >> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> >> > >> Hi Diana,
>
> >> > >> I've created GaeVFS to solve this problem:
>
> >> > >>    http://code.google.com/p/gaevfs/
>
> >> > >> You can view a demonstration here:
>
> >> > >>    http://gaevfs.appspot.com/
>
> >> > >> Note that the current released version (0.3) will only upload about
> >> > >> 2.0MB before timing out; the latest code in SVN will support the full
> >> > >> 10.0MB allowed by Google App Engine.
>
> >> > >> There's a feature on the roadmap called "Service for storing and
> >> > >> serving large files," but there's apparently no additional information
> >> > >> available on this feature:
>
> >> > >>    http://code.google.com/appengine/docs/roadmap.html
>
> >> > >> Vince
>
> >> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
> >> > >>  wrote:
>
> >> > >> > What options do I have in GAE to allow Users to upload, store, and
> >> > >> > view media (photos, video, audio, etc) from my within my 
> >> > >> > application?
>
> >> > >> > Is there a special data type in datastore that would be used to 
> >> > >> > store
> >> > >> > media?  If I store a media item in datastore then how do I display 
> >> > >> > it
> >> > >> > to the User?  In a regular app server, I would do this as a static
> >> > >> > file reference where I first transfer the data from the database to 
> >> > >> > a
> >> > >> > file accessible under webroot (if it is not already present).  But 
> >> > >> > in
> >> > >> > GAE the application can NOT create files in the static area due to
> >> > >> > permissions...so is there another technique to accomplish this?
>
> >> > >> > Would videos best be served indirectly via youtube?  If so, how do I
> >> > >> > know they will NOT be removed prematurely by youtube?
>
> >> > >> > Thanks.- Hide quoted text -
>
> >> > >> - Show quoted text -- Hide quoted text -
>
> >> > - Show quoted text -- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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-ja

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Vince Bonfanti

Can you try a different browser? From the logs it looks like you're
using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on
Windows) and they all worked fine. Something about the path being sent
by the browser is causing the error--if we can narrow it to IE7 then I
can investigate further.

The only "degradation" I've ever seen is that larger files take longer
to download, which you'd expect. However, I've never done any real
load or stress testing.

Vince

On Thu, Oct 22, 2009 at 6:07 PM, Diana Cruise  wrote:
>
> Actually, I tried simple files without spaces also and they failed
> too.  When I hit your photo I noticed execellent response time...have
> you noticed any particular degradation when displaying lists of
> photos, for example?
>
> On Oct 22, 3:58 pm, Diana Cruise  wrote:
>> Thanks Baz.
>>
>> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
>> or /gaevfs/images/mypic, then selected a local small photo.  On
>> submitting the form, received the 500 error...perhaps the photo had
>> spaces in the name?
>>
>> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>>
>>
>>
>> > You were unable to upload a small photo on my demo site, or in your
>> > development environment? I just successfully uploaded an image to the
>> > demo site, which you can download from here:
>>
>> >    http://gaevfs.appspot.com/gaevfs/images/
>>
>> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
>> > implements a virtual file system, so you refer to the file using URL
>> > links, just as you would for a static file. For example, here's an
>> > image I just uploaded:
>>
>> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>>
>> > The GaeVfsServlet handles both upload and download, and demonstrates
>> > how this is done:
>>
>> >    http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>>
>> > The GaeVfsServlet also handles setting the content type for the response.
>>
>> > Vince
>>
>> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise  
>> > wrote:
>>
>> > > Vince, I was unable to upload small photos...getting error code 500!
>>
>> > > What is the basic principle behind this solution?  It appears you are
>> > > storing the file in datastore in increments of 1M or less...along the
>> > > lines of what Raphael was getting at.  How do you display a list of
>> > > images from the datastore on a webpage?
>>
>> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
>> > >> Hi Diana,
>>
>> > >> I've created GaeVFS to solve this problem:
>>
>> > >>    http://code.google.com/p/gaevfs/
>>
>> > >> You can view a demonstration here:
>>
>> > >>    http://gaevfs.appspot.com/
>>
>> > >> Note that the current released version (0.3) will only upload about
>> > >> 2.0MB before timing out; the latest code in SVN will support the full
>> > >> 10.0MB allowed by Google App Engine.
>>
>> > >> There's a feature on the roadmap called "Service for storing and
>> > >> serving large files," but there's apparently no additional information
>> > >> available on this feature:
>>
>> > >>    http://code.google.com/appengine/docs/roadmap.html
>>
>> > >> Vince
>>
>> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
>> > >>  wrote:
>>
>> > >> > What options do I have in GAE to allow Users to upload, store, and
>> > >> > view media (photos, video, audio, etc) from my within my application?
>>
>> > >> > Is there a special data type in datastore that would be used to store
>> > >> > media?  If I store a media item in datastore then how do I display it
>> > >> > to the User?  In a regular app server, I would do this as a static
>> > >> > file reference where I first transfer the data from the database to a
>> > >> > file accessible under webroot (if it is not already present).  But in
>> > >> > GAE the application can NOT create files in the static area due to
>> > >> > permissions...so is there another technique to accomplish this?
>>
>> > >> > Would videos best be served indirectly via youtube?  If so, how do I
>> > >> > know they will NOT be removed prematurely by youtube?
>>
>> > >> > Thanks.- Hide quoted text -
>>
>> > >> - Show quoted text -- Hide quoted text -
>>
>> > - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Diana Cruise

Actually, I tried simple files without spaces also and they failed
too.  When I hit your photo I noticed execellent response time...have
you noticed any particular degradation when displaying lists of
photos, for example?

On Oct 22, 3:58 pm, Diana Cruise  wrote:
> Thanks Baz.
>
> Vince, I hit your demo site and just entered a path like /gaevfs/mypic
> or /gaevfs/images/mypic, then selected a local small photo.  On
> submitting the form, received the 500 error...perhaps the photo had
> spaces in the name?
>
> On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
>
>
>
> > You were unable to upload a small photo on my demo site, or in your
> > development environment? I just successfully uploaded an image to the
> > demo site, which you can download from here:
>
> >    http://gaevfs.appspot.com/gaevfs/images/
>
> > Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> > implements a virtual file system, so you refer to the file using URL
> > links, just as you would for a static file. For example, here's an
> > image I just uploaded:
>
> >    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>
> > The GaeVfsServlet handles both upload and download, and demonstrates
> > how this is done:
>
> >    http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>
> > The GaeVfsServlet also handles setting the content type for the response.
>
> > Vince
>
> > On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise  
> > wrote:
>
> > > Vince, I was unable to upload small photos...getting error code 500!
>
> > > What is the basic principle behind this solution?  It appears you are
> > > storing the file in datastore in increments of 1M or less...along the
> > > lines of what Raphael was getting at.  How do you display a list of
> > > images from the datastore on a webpage?
>
> > > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> > >> Hi Diana,
>
> > >> I've created GaeVFS to solve this problem:
>
> > >>    http://code.google.com/p/gaevfs/
>
> > >> You can view a demonstration here:
>
> > >>    http://gaevfs.appspot.com/
>
> > >> Note that the current released version (0.3) will only upload about
> > >> 2.0MB before timing out; the latest code in SVN will support the full
> > >> 10.0MB allowed by Google App Engine.
>
> > >> There's a feature on the roadmap called "Service for storing and
> > >> serving large files," but there's apparently no additional information
> > >> available on this feature:
>
> > >>    http://code.google.com/appengine/docs/roadmap.html
>
> > >> Vince
>
> > >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise  
> > >> wrote:
>
> > >> > What options do I have in GAE to allow Users to upload, store, and
> > >> > view media (photos, video, audio, etc) from my within my application?
>
> > >> > Is there a special data type in datastore that would be used to store
> > >> > media?  If I store a media item in datastore then how do I display it
> > >> > to the User?  In a regular app server, I would do this as a static
> > >> > file reference where I first transfer the data from the database to a
> > >> > file accessible under webroot (if it is not already present).  But in
> > >> > GAE the application can NOT create files in the static area due to
> > >> > permissions...so is there another technique to accomplish this?
>
> > >> > Would videos best be served indirectly via youtube?  If so, how do I
> > >> > know they will NOT be removed prematurely by youtube?
>
> > >> > Thanks.- Hide quoted text -
>
> > >> - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Diana Cruise

Thanks Baz.

Vince, I hit your demo site and just entered a path like /gaevfs/mypic
or /gaevfs/images/mypic, then selected a local small photo.  On
submitting the form, received the 500 error...perhaps the photo had
spaces in the name?

On Oct 22, 3:10 pm, Vince Bonfanti  wrote:
> You were unable to upload a small photo on my demo site, or in your
> development environment? I just successfully uploaded an image to the
> demo site, which you can download from here:
>
>    http://gaevfs.appspot.com/gaevfs/images/
>
> Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
> implements a virtual file system, so you refer to the file using URL
> links, just as you would for a static file. For example, here's an
> image I just uploaded:
>
>    http://gaevfs.appspot.com/gaevfs/images/img4.jpg
>
> The GaeVfsServlet handles both upload and download, and demonstrates
> how this is done:
>
>    http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlant...
>
> The GaeVfsServlet also handles setting the content type for the response.
>
> Vince
>
>
>
> On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise  
> wrote:
>
> > Vince, I was unable to upload small photos...getting error code 500!
>
> > What is the basic principle behind this solution?  It appears you are
> > storing the file in datastore in increments of 1M or less...along the
> > lines of what Raphael was getting at.  How do you display a list of
> > images from the datastore on a webpage?
>
> > On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> >> Hi Diana,
>
> >> I've created GaeVFS to solve this problem:
>
> >>    http://code.google.com/p/gaevfs/
>
> >> You can view a demonstration here:
>
> >>    http://gaevfs.appspot.com/
>
> >> Note that the current released version (0.3) will only upload about
> >> 2.0MB before timing out; the latest code in SVN will support the full
> >> 10.0MB allowed by Google App Engine.
>
> >> There's a feature on the roadmap called "Service for storing and
> >> serving large files," but there's apparently no additional information
> >> available on this feature:
>
> >>    http://code.google.com/appengine/docs/roadmap.html
>
> >> Vince
>
> >> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise  
> >> wrote:
>
> >> > What options do I have in GAE to allow Users to upload, store, and
> >> > view media (photos, video, audio, etc) from my within my application?
>
> >> > Is there a special data type in datastore that would be used to store
> >> > media?  If I store a media item in datastore then how do I display it
> >> > to the User?  In a regular app server, I would do this as a static
> >> > file reference where I first transfer the data from the database to a
> >> > file accessible under webroot (if it is not already present).  But in
> >> > GAE the application can NOT create files in the static area due to
> >> > permissions...so is there another technique to accomplish this?
>
> >> > Would videos best be served indirectly via youtube?  If so, how do I
> >> > know they will NOT be removed prematurely by youtube?
>
> >> > Thanks.- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Vince Bonfanti

You were unable to upload a small photo on my demo site, or in your
development environment? I just successfully uploaded an image to the
demo site, which you can download from here:

http://gaevfs.appspot.com/gaevfs/images/

Yes, the images get stored in "blocks" of 1MB or less. GaeVFS
implements a virtual file system, so you refer to the file using URL
links, just as you would for a static file. For example, here's an
image I just uploaded:

http://gaevfs.appspot.com/gaevfs/images/img4.jpg

The GaeVfsServlet handles both upload and download, and demonstrates
how this is done:


http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlanta/appengine/servlet/GaeVfsServlet.java

The GaeVfsServlet also handles setting the content type for the response.

Vince

On Thu, Oct 22, 2009 at 3:04 PM, Diana Cruise  wrote:
>
> Vince, I was unable to upload small photos...getting error code 500!
>
> What is the basic principle behind this solution?  It appears you are
> storing the file in datastore in increments of 1M or less...along the
> lines of what Raphael was getting at.  How do you display a list of
> images from the datastore on a webpage?
>
> On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
>> Hi Diana,
>>
>> I've created GaeVFS to solve this problem:
>>
>>    http://code.google.com/p/gaevfs/
>>
>> You can view a demonstration here:
>>
>>    http://gaevfs.appspot.com/
>>
>> Note that the current released version (0.3) will only upload about
>> 2.0MB before timing out; the latest code in SVN will support the full
>> 10.0MB allowed by Google App Engine.
>>
>> There's a feature on the roadmap called "Service for storing and
>> serving large files," but there's apparently no additional information
>> available on this feature:
>>
>>    http://code.google.com/appengine/docs/roadmap.html
>>
>> Vince
>>
>>
>>
>> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise  
>> wrote:
>>
>> > What options do I have in GAE to allow Users to upload, store, and
>> > view media (photos, video, audio, etc) from my within my application?
>>
>> > Is there a special data type in datastore that would be used to store
>> > media?  If I store a media item in datastore then how do I display it
>> > to the User?  In a regular app server, I would do this as a static
>> > file reference where I first transfer the data from the database to a
>> > file accessible under webroot (if it is not already present).  But in
>> > GAE the application can NOT create files in the static area due to
>> > permissions...so is there another technique to accomplish this?
>>
>> > Would videos best be served indirectly via youtube?  If so, how do I
>> > know they will NOT be removed prematurely by youtube?
>>
>> > Thanks.- Hide quoted text -
>>
>> - Show quoted text -
>

--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Bassil Karam
Diana, from this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/def13e8ec370af74
"Basically, you'll need to store both the image data and its content type.
Then, when the entity is fetched, set the content type appropriately
using  resp.setContentType(...) and echo the bytes to the browser. Let me
know if you have any more questions on this." (Jason, Google)

Baz


On Thu, Oct 22, 2009 at 12:04 PM, Diana Cruise wrote:

>
> Vince, I was unable to upload small photos...getting error code 500!
>
> What is the basic principle behind this solution?  It appears you are
> storing the file in datastore in increments of 1M or less...along the
> lines of what Raphael was getting at.  How do you display a list of
> images from the datastore on a webpage?
>
> On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> > Hi Diana,
> >
> > I've created GaeVFS to solve this problem:
> >
> >http://code.google.com/p/gaevfs/
> >
> > You can view a demonstration here:
> >
> >http://gaevfs.appspot.com/
> >
> > Note that the current released version (0.3) will only upload about
> > 2.0MB before timing out; the latest code in SVN will support the full
> > 10.0MB allowed by Google App Engine.
> >
> > There's a feature on the roadmap called "Service for storing and
> > serving large files," but there's apparently no additional information
> > available on this feature:
> >
> >http://code.google.com/appengine/docs/roadmap.html
> >
> > Vince
> >
> >
> >
> > On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise 
> wrote:
> >
> > > What options do I have in GAE to allow Users to upload, store, and
> > > view media (photos, video, audio, etc) from my within my application?
> >
> > > Is there a special data type in datastore that would be used to store
> > > media?  If I store a media item in datastore then how do I display it
> > > to the User?  In a regular app server, I would do this as a static
> > > file reference where I first transfer the data from the database to a
> > > file accessible under webroot (if it is not already present).  But in
> > > GAE the application can NOT create files in the static area due to
> > > permissions...so is there another technique to accomplish this?
> >
> > > Would videos best be served indirectly via youtube?  If so, how do I
> > > know they will NOT be removed prematurely by youtube?
> >
> > > Thanks.- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Diana Cruise

Vince, I was unable to upload small photos...getting error code 500!

What is the basic principle behind this solution?  It appears you are
storing the file in datastore in increments of 1M or less...along the
lines of what Raphael was getting at.  How do you display a list of
images from the datastore on a webpage?

On Oct 22, 1:33 pm, Vince Bonfanti  wrote:
> Hi Diana,
>
> I've created GaeVFS to solve this problem:
>
>    http://code.google.com/p/gaevfs/
>
> You can view a demonstration here:
>
>    http://gaevfs.appspot.com/
>
> Note that the current released version (0.3) will only upload about
> 2.0MB before timing out; the latest code in SVN will support the full
> 10.0MB allowed by Google App Engine.
>
> There's a feature on the roadmap called "Service for storing and
> serving large files," but there's apparently no additional information
> available on this feature:
>
>    http://code.google.com/appengine/docs/roadmap.html
>
> Vince
>
>
>
> On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise  
> wrote:
>
> > What options do I have in GAE to allow Users to upload, store, and
> > view media (photos, video, audio, etc) from my within my application?
>
> > Is there a special data type in datastore that would be used to store
> > media?  If I store a media item in datastore then how do I display it
> > to the User?  In a regular app server, I would do this as a static
> > file reference where I first transfer the data from the database to a
> > file accessible under webroot (if it is not already present).  But in
> > GAE the application can NOT create files in the static area due to
> > permissions...so is there another technique to accomplish this?
>
> > Would videos best be served indirectly via youtube?  If so, how do I
> > know they will NOT be removed prematurely by youtube?
>
> > Thanks.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Vince Bonfanti

Hi Diana,

I've created GaeVFS to solve this problem:

http://code.google.com/p/gaevfs/

You can view a demonstration here:

http://gaevfs.appspot.com/

Note that the current released version (0.3) will only upload about
2.0MB before timing out; the latest code in SVN will support the full
10.0MB allowed by Google App Engine.

There's a feature on the roadmap called "Service for storing and
serving large files," but there's apparently no additional information
available on this feature:

http://code.google.com/appengine/docs/roadmap.html

Vince

On Thu, Oct 22, 2009 at 1:55 PM, Diana Cruise  wrote:
>
> What options do I have in GAE to allow Users to upload, store, and
> view media (photos, video, audio, etc) from my within my application?
>
> Is there a special data type in datastore that would be used to store
> media?  If I store a media item in datastore then how do I display it
> to the User?  In a regular app server, I would do this as a static
> file reference where I first transfer the data from the database to a
> file accessible under webroot (if it is not already present).  But in
> GAE the application can NOT create files in the static area due to
> permissions...so is there another technique to accomplish this?
>
> Would videos best be served indirectly via youtube?  If so, how do I
> know they will NOT be removed prematurely by youtube?
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
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: Photo and Video services

2009-10-22 Thread Raphael André Bauer

On Thu, Oct 22, 2009 at 7:55 PM, Diana Cruise  wrote:
>
> What options do I have in GAE to allow Users to upload, store, and
> view media (photos, video, audio, etc) from my within my application?
in short: it's not possible.
(don't forget that there is a 1mb limit for requests and responses on
http level - and also a 1mb level on all entities (blobs, whatever)).

long version:
you can work around that by using ajax calls and composing everything
from small requests and / or splitting stuff over many small entities
of 1mb each, but i guess that is not something you really want.

you can also use services like youtube to put content on external
sources and mesh them up with your application, but this is then a
completely different scenario (but a creative one :) )

a service for large file delivery is currently under development by
the googlers, but i do not know when it will be publicly available ---
this service will change a lot i guess...


ra!
>
> Is there a special data type in datastore that would be used to store
> media?  If I store a media item in datastore then how do I display it
> to the User?  In a regular app server, I would do this as a static
> file reference where I first transfer the data from the database to a
> file accessible under webroot (if it is not already present).  But in
> GAE the application can NOT create files in the static area due to
> permissions...so is there another technique to accomplish this?
>
> Would videos best be served indirectly via youtube?  If so, how do I
> know they will NOT be removed prematurely by youtube?
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---