A client will download a xml file instead of uploading.
Records will be created (or updated, deleted) in a table/kind over
time and all records from a kind need to be downloaded in form of a
xml file, I hope I am explaining the issue bit more clearly.

I am not sure if I could make use of blobstore in this case as it will
require update of blobstore object (in background may be using task)
every time a record gets added/updated/deleted i.e. if I create xml
file programmaticaly and store as blobstore object.


On Nov 29, 5:14 pm, Didier Durand <[email protected]> wrote:
> Hi,
>
> To emulate files, you have to use the Blob object in the datastore to
> store such xml content: see com.google.appengine.api.datastore.Blob 
> inhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> Blob has a limited max size: 1 Mbyte. So, you can use a collection
> (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> If your files get uploaded by a client, you can use the Blobstore
> where the max size is much bigger(2 Gbytes): 
> seehttp://code.google.com/appengine/docs/java/blobstore/overview.html
>
> You have to associate the blob with some other fields (name, size,
> last_updated) in you pojo to reproduce what you expect from a file.
>
> N.B. if you need to emulate a directory tree, you also have to write
> it by yourself.
>
> Finally, I would recommend alternative Objectify rather than standard
> JDO for such services.
>
> Hope this helps
>
> regards
> didier
>
> On Nov 29, 5:53 pm, pac <[email protected]> wrote:
>
> > In a website I need to provide a feature to get data in xml format
> > i.e. some url
>
> > e.g.http://www.mysite.com../data.xml
>
> > I think in gae I can not create a file. Any suggestions to create such
> > feature to get data from data store in this way?
>
> > Data store will have large number of records, so in general, a file
> > created from that could be of good few MBs.

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

Reply via email to