Actually, that's an idea. Include a bit of additional info with the data. But maybe those bits of info should go in to attributes?
On Sep 30, 11:58 am, Sylvain <[EMAIL PROTECTED]> wrote: > Cool :) > > I like the to_xml function, but it was broken with a model with a blob > > Print the same thing than the data viewer ? > Something like that : > > "4013 bytes, SHA-1 = 250d99ae712b26f50a26d2232c02ec3c3f05f789" > > Regards > > On 30 sep, 20:32, Rafe <[EMAIL PROTECTED]> wrote: > > > Folks, > > > Rafe Kaplan of the AppEngine team here. I'm going to fix a small > > issue that might effect applications that want to export Blob data as > > XML. It's been reported as issue 430, and you can read about it here: > > > http://code.google.com/p/googleappengine/issues/detail?id=430 > > > The output of the XML document being produced by the to_xml method > > is always a Unicode string. The problem arises when binary data is > > converted to unicode which doesn't encode properly. The solution that > > I am going to pursue is to convert all Blob objects to a text encoding > > format. I was thinking that base64 is a typical solution, but wanted > > to find out if anyone on the boards had opinions or ideas about how > > better to encode binary data in to an XML document. > > > Also, this change will change the behavior of applications that > > already output Blob data to XML. Normally, we do not make changes to > > API's that can break already existing application, but given that this > > function is probably broken in most places it is being used, it seems > > appropriate. Hopefully, those applications will already treat text in > > such output as opaque binary data. > > > I cannot promise that I will honor all ideas, but I want to hear as > > many as I can. I don't believe I've thought of everything! So, > > please respond to this thread with ideas and suggestions if this > > feature interests you. > > > - Rafe Kaplan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---