Encoding binary content as a "string" vs as base64

Viewed 35

Let's say I have the following byte value:

b'YQBibG9i'

Would it be more common to pass this around exactly like that, or to base64 encode it as "WVFCaWJHOWk="? For example, if writing this to JSON or something similar. Why would one approach be preferred over the other?

0 Answers
Related