I am creating xml file in blobstore but after serving from blobstore,
when saved through browser then
CDATA barckets get changed i.e
<![CDATA[
to
<![CDATA[
and
]]>
to
]]>
Thought elements brackets stay fine i.e. <id> remains as it is.
During file creation I use:
fileService.createNewBlobFile("text/xml",xmlFileType + ".xml");
new PrintWriter(Channels.newWriter(writeChannel, "UTF8"));
and when it is served then:
res.setContentType("text/xml");
res.setHeader("Content-Disposition","inline; filename=" + xmlFileType
+ ".xml");
//res.setHeader("Content-Disposition","attachment; filename=" +
xmlFileType + ".xml");
blobstoreService.serve(blobKey, res);
Any suggestions to fix it?
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].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.