3 ms·
It's an interesting idea, but you still wouldn't be able to encode the byte sequence for "end of blob" as part of the blob data... without escaping it.
by gregmac 7y ago
It's an interesting idea, but you still wouldn't be able to encode the byte sequence for "end of blob" as part of the blob data... without escaping it.
- stiray 7y agoThey shouldnt occur in blob as they would be designated just for this. All other characters can occur in real world, those two could get there only by mistake.
- bonoboTP 7y agoWhat if I want to put them in a comment like this, to discuss them? Well, you might say I shouldn't do it and should just refer to their code points, but basically that's a form of escaping as well.
- rtpg 7y agobut what if you need to send a word document containing an explanation about how to use the blob characters? Turtles all the way down....
- deleted 7y ago[deleted]
- viraptor 7y agoWhat about a blob containing a page which contains blobs itself?
- wruza 7y agoHow much blob is blob? If it is binary, then there is a chance of clash, no matter how you dare them bytes to do that. If it is always-valid utf-8, then use 11111111 and 11111110 (or any other out-of-band markers available for source encoding) to open and close your message. Not sure what’s the point for it though.