4 ms·
I agree with the spirit and most of the content of this comment, except for the hard to random access part. It's not really hard to random access base 64.
by guipsp 7y ago
I agree with the spirit and most of the content of this comment, except for the hard to random access part. It's not really hard to random access base 64.
- londons_explore 7y agoTheoretically, yes it's easy. Practically, base64 encode a video file and tell me how exactly you're going to allow the user to seek to any place they like within that video using only common libraries on common platforms... Theoretically easy, practically hard enough nobody does it.
- tantalor 7y ago1. Decode to bytes. 2. Do whatever you said.
- Strom 7y agoPractically it's easy too. Here's a piece of pseudocode I just wrote: chunkOffset = byteIndex/3*4 base64decode(base64data[chunkOffset:chunkOffset+4])[byteIndex%3] This gets you the byte located at an arbitrary index of the original buffer while operating on the base64 data.