It will be good to have a official Java Uploader.

On May 18, 10:19 pm, "Ikai L (Google)" <ika...@google.com> wrote:
> Also, I should mention that in general, use HTTP POST for anything
> destructive. An HTTP GET should not change data. It's too easy for a user to
> reload a page without a warning or a web crawler to accidentally invoke some
> action.
>
>
>
>
>
> On Tue, May 18, 2010 at 8:59 AM, Erich <erich.re...@gmail.com> wrote:
> > Thanks for the tips Ikai! I'll try stuffing the parameters into a post
> > and I'll make it a servlet instead.
>
> > When I've made the changes I'll post my work for others to inspect and
> > use as they wish.
>
> > Thanks,
> > Erich
>
> > On May 17, 2:04 pm, "Ikai L (Google)" <ika...@google.com> wrote:
> > > Use a POST - the 2000 character limit is there because some browsers
> > can't
> > > handle URLs that long. It might also be easier to write your code in a
> > > servlet and not a JSP. Can you post it for people to look at?
>
> > > On Sun, May 16, 2010 at 2:11 PM, Erich <erich.re...@gmail.com> wrote:
> > > > Hi All.
>
> > > > I'm completely illiterate in Python, so I've created a workaround in
> > > > Java to upload Java Object to the datastore.
>
> > > > I have a deployed JSP which receives data and uses reflection and
> > > > various magic to take the incoming URL, create the objects dynamically
> > > > and add them to the store. I've built my uploader and receiver to take
> > > > advantage of bulk operations to save URL and datastore calls.
>
> > > > There are some serious drawbacks to this method:
> > > > 1 - The maximum URL length before a 414 error is 2000. This really
> > > > limits how many objects can be passed per URL.
> > > > 2 - I haven't figure out a way to do this using securely. (without
> > > > exposing the JSP publicly)
>
> > > > The good things about it:
> > > > 1 - All Java (no installing a second google app program and mucking
> > > > around in Python)
> > > > 2 - No need to create intermediate files on your system. Plain Object -
> > > > > Datastore
>
> > > > I would like to improve this if possible. Does anyone know how the
> > > > python uploader works? Is a special URL or connection I can make to
> > > > pass more data or do it securely?
>
> > > > Thanks,
> > > > Erich
>
> > > > --
> > > > 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<google-appengine-java%2B
> > > >  unsubscr...@googlegroups.com>
> > <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java 
> > %252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > Ikai Lan
> > > Developer Relations, Google App Engine
> > > Twitter:http://twitter.com/ikai
> > > Delicious:http://delicious.com/ikailan
>
> > > ----------------
> > > Google App Engine links:
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine
>
> > > --
> > > 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<google-appengine-java%2B 
> > unsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B 
> > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> ----------------
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> 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 
> athttp://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-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.

Reply via email to