/
21.07.2021 at 07:46 am
Cuttings

Basis for Base64

Reductionist SQLite storage.

I've lately been storing generated binaries and small files in SQLite via base64 text and BLOB fields.

I note the claims by Django folks that it's 'not good practice' (which appears quite contrary to formal experimental verification, and possibly untrue unless you're network-bound).

Arguably they have a point with BLOBs. But I don't think I'll agree with the arguments against base64 storage: hey, it's just text. And I like it. It reduces filesystem management and I get a relational framework to manage metadata, rather than having to rely on the OS's filesystem, which often feels slow (especially in Windows).

This was also an interesting read on the history of Base64:

Your first mistake is thinking that ASCII encoding and Base64 encoding are interchangeable. They are not. They are used for different purposes.

  • When you encode text in ASCII, you start with a text string and convert it to a sequence of bytes.

  • When you encode data in Base64, you start with a sequence of bytes and convert it to a text string.

To understand why Base64 was necessary in the first place we need a little history of computing...

Filed under:
#
#
Words: 188 words approx.
Time to read: 0.75 mins (at 250 wpm)
Keywords:
, , , , , , , , ,

Other suggested posts

  1. 29.11.2023 at 11:04 pm / Of Witchers By Trade
  2. 27.08.2020 at 09:33 pm / Write Like You Play Tetris
  3. 04.06.2020 at 05:25 pm / Music and Neural Pathways
  4. 05.02.2020 at 10:26 pm / Nostalgic Raging Streets
  5. 31.12.2018 at 06:23 pm / Why Plain Text
  6. 19.08.2018 at 02:13 pm / Saunter Not
  7. 03.01.2016 at 12:00 am / Creators And Their Gems (Polished or Otherwise)
  8. 20.06.2015 at 12:00 am / Mike Tyson on (His) Lawyers
  9. 17.03.2012 at 12:00 am / Upper and Lower Hengsha
  10. 14.08.2010 at 12:00 am / 百花繚乱
© Wan Zafran. See disclaimer.