• Farid.Kognoz
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hi, i'm trying to POST a .doc file using the HTTPRequest Class. The file is taken from a mail attachment (blob variable). The request can send ASCII files but when it comes to binary data it doesn't work.
As for the request's body, I'm using a multipart form, the only problem I'm having is when adding the blob file to it. I tried EncodingUtil.Base64Encode and convertToHex... non of them worked.
Am I missing something here?
Any help would be apreciated;
Thanks
Farid
I need help sending files (multipart) over httprequest class with post method. I searched a lot but can't find what should I write on the the header & body. Could someone send me an example?
Thanks;
Farid