2 votes
Accepted

Attachment content is empty

This file looks like a legitimate PNG file fragment when saved and downloaded. Reading through the file, we see: tag length data Magic 8 iVBORw0KGgo= // PNG HEADER IHDR 13 Width = 1678, Height = ...
sfdcfox's user avatar
  • 481k
1 vote

how to 'encode' the body in an HTTP body?

In Apex Code, \ is a source code escape character. That means to get a literal \, you need to type \\ instead. For this reason, among others, I always prefer to use JSON.serialize; it takes more code, ...
sfdcfox's user avatar
  • 481k

Only top scored, non community-wiki answers of a minimum length are eligible