Forum Discussion

HGoddeau's avatar
HGoddeau
Copper Contributor
Feb 24, 2021

Download Sharepoint Excel using the Rest Api

 

Working as a developer on iSeries (AS/400), I use the Rest Api's to upload/download documents to/from Sharepoint.

 

The tool to Get/Post messages is Axis (C++ code).

C works with "null terminated" strings and this causes problems when downloading byte streams that contain hex(00) bytes.

 

Is there a way to tell the Rest Api to return the byte stream as a base64 encoded stream (or as an ANSI byte stream) ?

I tried some combinations of "Accept-Charset" / "Accept-Encoding", but without succes 😞

 

Does anybody  know a solution for this problem ?

 

Kind regards

1 Reply

  • BradD's avatar
    BradD
    Copper Contributor
    Haven’t looked into it but you’ve got Azure so why not build a proxy in between using an Azure Function?

    You’ll be able to turn it to base64 from there.

    Just a thought.

Resources