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 = ...
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, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
encodingutil × 25apex × 16
crypto × 6
blob × 4
base64 × 4
character-encoding × 4
attachment × 3
httprequest × 3
csv × 2
blob.topdf × 2
encoding × 2
hashcode × 2
visualforce × 1
lightning-aura-components × 1
trigger × 1
lightning-web-components × 1
community × 1
api × 1
oauth2 × 1
pdf × 1
salesforce-id × 1
apex-email-service × 1
files × 1
java × 1
url × 1