web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Download file from SharePoint using rest API for node JS

(0) ShareShare
ReportReport
Posted on by 5

How can I download file from SharePoint using axios node JS. I got a data is empty from response.I need data is not empty. Please find the below request.I need data 

const options = { method: 'get',

headers:{ 'Authorization': Bearer ${token}, 'Accept':'application/json;odata=verbose' },

url:sharePointBaseUrl + "/GetFileByServerRelativeUrl('" + folder +"/" + filename + "')/$value", };

axios(options).then((response) => {

})

 how to download it or how to convert it to base64 or any other format 

Thank you.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi React Native,

    It seems that your issue is related to SharePoint. You could post your issue here for further help:

    Welcome to the SharePoint group. (microsoft.com)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans