0

I have a class that retrieves a file in binary code from an external webservice call to our Salesforce and generates a file but now they want to change it to multipart/form-data.

I've been reading the documentation but I'm not finding anything related to this topic apart from some comments saying that this is not possible right now in apex.

Is there a way to achieve this or it's not possible?

Regards,

1 Answer 1

1

It is definitely not possible at this time.

Apex REST currently doesn't support requests of Content-Type multipart/form-data.

Unfortunately, you'd have to go about it a different way, such as encoding the file as base64 and then putting it into an XML/JSON payload.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .