From: Evgeny G. <gaz...@gm...> - 2010-02-02 15:55:10
|
> > > True on all counts. > > Though I wonder if it wouldn't be convenient to try and parse a string if a > mime type is not specified, and if it > parses, then store it as a text/xml document rather than as a binary > document. > > Most binary types, such as base64, zip files and the like, would fail on > the parse very quickly, so it would seem there > wouldn't be much overhead in trying the parse first. Wouldn't be hard to > implement (the old approach actually did this). > I want do it too, but before storing/parsing/reading from stream we are creating a XML or binary doc for storing content. Just I don't see how we can do it at one time, because we parsing directly into out stream. ---------- Evgeny |