/
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. 06.01.2025 at 03:25 pm / Recursive Reflective Questioning With LLMs
  2. 18.10.2022 at 09:36 am / The Airplane Test of Fluency
  3. 30.04.2022 at 10:36 am / Masters of A Fraction of A Dot
  4. 20.05.2020 at 01:05 am / A Programmer & His Mechanical Friend
  5. 10.01.2020 at 10:40 am / Learned Lumber
  6. 08.02.2016 at 12:00 am / Eye to Eye (Jonathan Young's Version)
  7. 24.10.2015 at 12:00 am / Salomon v Salomon is Antiquated
  8. 23.07.2015 at 12:00 am / The Line Between Gifts and Bribes
  9. 05.07.2014 at 12:00 am / Jack Hamm on (Artistic) Practice
  10. 14.08.2010 at 12:00 am / 百花繚乱
© Wan Zafran. See disclaimer.