开发者

Apex HTTP PUT with Binary Data

开发者_开发技巧

I am trying to submit a binary file (Word doc) using HTTP/PUT, however it seems like the encoding is not properly done and it is not sending binary data, it works ok if I just send txt files...

Any way to make the data to be binary instead of encoded like strings?


EncodingUtil.base64Encode(theWordDocBlob);

Assuming your word doc is a Blob in Apex, the above will work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜