is there a way in Apex to store data in a Blob without using JSON, for example by casting? JSON has a limit when deserializing of 6MB, and our data is sometimes more than that.
The problem is that storing data as JSON within an attachment as a serialzied JOSN is possible, even if the size exceeds 6 MB, but that deserializing the same data gives the error:
String length exceeds maximum: 6000000
Is it possible to store the data - without serializing it - as a blob, and then directly casting the blob back to the data format it was originally in.
[blob].toString()
"Casts the Blob into a String" although not sure what that would do to heap on a 6MB string