3 ms·
So many seem to have "base64 damage", they get confused when they don't have to base64 encode something. To attach documents (e.g. scans) to a given order in ou
by magicalhippo 4y ago
So many seem to have "base64 damage", they get confused when they don't have to base64 encode something. To attach documents (e.g. scans) to a given order in our API, you just POST the raw file directly to the endpoint with appropriate content type. Simple.
Yet I get so many questions like "but we base64-encode them first?" or similar. One dev mentioned he'd never done such a "raw" POST.
- icedchai 4y agoThere's a lot of weird APIs out there. I've seen some where a file is uploaded by base64 encoding it and putting it into JSON: { "file": base64blob }