I need to assign Blob value to a field. I've already tried Text and URL field types but I've got next error Illegal assignment from Blob to String
. Is it possible? What field type should I choose?
Thanks for any help, Vlad
I need to assign Blob value to a field. I've already tried Text and URL field types but I've got next error Illegal assignment from Blob to String
. Is it possible? What field type should I choose?
Thanks for any help, Vlad
Alas, Salesforce doesn't support custom fields of the Blob type. Internally SF use Blob fields though (e.g. attachments, content files). Anyways, you have several options here. (1) Save your Blob as an attachment (or a content file) and relate it to a record. (2) Use a text area (long) custom field and store your blob as base64 encoded text. In this case you should consider the size of the resulting text string which should not exceed 131,072 characters.
There is an idea out there you can vote up.