RMaher's Profile
Rookie
3
Points

Questions
0

Answers
1

  • Rookie Asked on January 14, 2024 in SuiteScript.

    Has anyone made any progress on this.  I am trying to send PDFs to the SharePoint Microsoft Graph API.  I can always create the file, but it does not open correctly.  The only way I can get it to work is to send a local file from PostMan as binary.  When i make the same request to httpbin.org/put I can see the below.  Using getContents() from the NetSuite file returns a similar but different string.  Any Ideas?  Hoping there is some SuiteScript 2.1 of fetch breakthrough.

     

    {
    "args":{},
    "data":"data:application/octet-stream;base64,JVBERi0xLjQKJeLjz9MKMTkgMCBvYmogPDwvU3VidHlwZS9Gb3JtL0ZpbHRlci9GbGF0ZURlY29kZS9UeXBlL1hPYmplY3QvTWF0cml4WzEgMCAwIDEgMCAwXS9Gb3JtVHlwZSAxL1Jlc291cmNlczw8L1Byb2NTZXRbL1BERi9UZXh0L0ltYWdlQi9JbWFnZUMvSW1hZ2VJXS9Gb250PDwvSGVsdiA3IDAgUj4+Pj4vQkJveFswIDAgMTY1LjM4IDIzLjk0XS9MZW5ndGggMTA0Pj5zdHJlYW0KeJwrVAhU0A+pUHDydVYoVDAAQkMzUz1jCwUjYz1LE4WiVI......
    • 2561 views
    • 5 answers
    • 0 votes