This Base64Field class can be used as an alternative to a BlobField, which is not supported by Django out of the box.

The base64 encoded data can be accessed by appending _base64 to the field name. This is especially handy when using this field for sending eMails with attachment which need to be base64 encoded anyways.