Uploading Files to SharePoint via Graph API

Aithan Gimenez 25 Reputation points
2025-05-06T11:49:40.0466667+00:00

Is there a way to upload files to SharePoint without the raw binary file? My input value only has either base64 and utf-8 which are different from binary. This is an integration I'm trying to do, I understand using javascript window.atob does the trick to upload files or using Buffers, and file readers and such does the job. But I'm developing in purely server-side scripting wherein I'm only able to do REST APIs thus I can't insert javascript code and the like since the only Input I have are either base64 and utf-8.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,603 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.