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 in
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types

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): see
http://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