You'll have to consult the library you used to create the in-memory database to figure out how to do that. As far as creating an outputstream - this is just a matter of setting a content type and outputstream. Standard servlet:
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=servlets+binary+data+response On Tue, Jun 22, 2010 at 4:59 AM, Maulik Gordhandas < [email protected]> wrote: > I am able to create in memory sqlite database. Now my concern is how > do I send the in-memory db to http stream. > > Is it possible to retrieve the db from the memory? > Thanks > > On Jun 21, 10:38 pm, "Ikai L (Google)" <[email protected]> wrote: > > *It's not clear what you are doing here. If you need persistence, use the > > datastore API to store data ( > http://code.google.com/appengine/docs/java/datastore/). However, if you > need > > to *transmit* a sqlite database to some client, you'll need to generate > the > > db file and send it down. I don't know how you would do this - it seems > like > > any SQLite libraries you would load would try to load non-whitelisted > > classes (http://stackoverflow.com/questions/41233/java-and-sqlite), > though > > you could probably take a look at what a SQLite db file looks like and > > generate it by hand. > > * > > On Sun, Jun 20, 2010 at 9:36 PM, Maulik Gordhandas < > > > > > > > > [email protected]> wrote: > > > My application use is to store the collected data in an sqlite db file > > > which needs to be sent to a mobile phone. > > > > > Is it possible to do it in appengine? > > > > > On Jun 21, 3:19 am, Tristan <[email protected]> wrote: > > > > ditto... if you want SQL this is not the tool to use > > > > > > On Jun 19, 12:22 am, nicolas melendez <[email protected]> wrote: > > > > > > > Use the datastore, and forget SQL dbs in scalable apps. > > > > > > > On Fri, Jun 18, 2010 at 9:28 AM, Maulik Gordhandas < > > > > > > > [email protected]> wrote: > > > > > > Dear All, > > > > > > > > Wanted to know is it possible to create a SQLite db on AppEngine > > > using > > > > > > Java code. Or do i need to upload a sqlite db file to blob > storage > > > and > > > > > > than insert data into it using some connector. > > > > > > > > Please help.. > > > > > > 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 > > > > > > [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]<google-appengine-java%[email protected]> > <google-appengine-java%[email protected]<google-appengine-java%[email protected]> > ><google-appengine-java%2B > > > [email protected]> > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > > > > -- > > > > > Nicolás Meléndez > > > > > Java Software Developer > > > > > > > 1) Google App Engine works: > > > > > > > 1.a)http://www.clasificad.com.ar(Local free classifieds for > housing, > > > > > sale, services, local community, curses,jobs, and events - GAE/J + > > > Wicket + > > > > > YUI) > > > > > > > 1.b)http://www.chessk.com(Massive multiplayer chess online GAE/J > + > > > > > Applets + Wicket) > > > > > > > 2) Linkedin:http://ar.linkedin.com/in/nicolasmelendez > > > > > -- > > > 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 > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]> > <google-appengine-java%[email protected]<google-appengine-java%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > 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 > > -- > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- 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 -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
