New answers tagged

0 votes

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

Just had the same issue. After using sfdx force:source:push --loglevel trace we found an absurdly long query in User/.sfdx/sfdx.log: "request: {\"method\":\"GET\",\"url\&...
user avatar
  • 577
3 votes

Convert PDF file returned as byte[] in apex callout into blob and Save as file

You don't need to do anything special, just get the body's Blob content: Blob fileContent = res.getBodyAsBlob(); ContentVersion cv = new ContentVersion(VersionData=fileContent); // Don't forget the ...
user avatar
  • 438k

Top 50 recent answers are included