3 ms·
It may matter a lot for some data... When you send a binary file, would you like all of the zeros stripped? Your insignificant data from one perspective is pos
by bsaunder 16y ago
It may matter a lot for some data... When you send a binary file, would you like all of the zeros stripped? Your insignificant data from one perspective is possiblely significant from another perspective.
- scott_s 16y agoI don't follow. If you need literal, unstructured data embedded in a structured format, then use whatever escape mechanism the format has.
- jerf 16y agoIt is not possible to ship binary over XML. Regardless of encoding used, XML rigidly forbids the bytes corresponding to non-whitespace ASCII chars below 32: http://www.w3.org/TR/2008/REC-xml-20081126/#charsets http://www.w3.org/TR/2008/REC-xml-20081126/#charsets This makes arbitrary binary impossible. You have to base64 encode it or something. Not entirely relevant to your point, but worth bringing up. (XML doesn't ever mangle binaries, because it simply forbids them.)