Debugging Base64 Images: Fix Broken Data URIs
The API response says avatar, the field holds four thousand characters of gibberish, and the frontend renders a broken image icon. Welcome to debugging base64 images, one of those tasks that's miserable with print statements and trivial with a decoder in front of you. Paste the string, look at the picture, and half your hypotheses die instantly. This article covers where these blobs come from, how to read their tells, and the short list of fixes that resurrect a data URI that won't render.