File format of image downloaded SharePoint Site Web API

%3CLINGO-SUB%20id%3D%22lingo-sub-1969472%22%20slang%3D%22en-US%22%3EFile%20format%20of%20image%20downloaded%20SharePoint%20Site%20Web%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1969472%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20know%20the%20format%20of%20the%20image%20file%20that%20is%20retrieving%20using%20this%20API%20url%20from%20Sharepoint.%3CBR%20%2F%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fxxx.sharepoint.com%2Fsites%2FprojectXYZ%2F_api%2Fweb%2FGetFileByServerRelativeUrl('%2Fsites%2FprojectXYZ%2FDocuments%2FIndex%2Fdog.png')%2F%24value%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fxxx.sharepoint.com%2Fsites%2FprojectXYZ%2F_api%2Fweb%2FGetFileByServerRelativeUrl('%2Fsites%2FprojectXYZ%2FDocuments%2FIndex%2Fdog.png')%2F%24value%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20able%20to%20hit%20this%20API%2C%20but%20the%20value%20is%20returned%20in%20a%20diff%20format.%20Please%20see%20the%20image.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20file%20format%3F%20Is%20it%20base64%20or%20something%20else%3F%3CBR%20%2F%3EI%20want%20to%20bind%20this%20file%20to%20a%20Power%20Apps%20PCF%20html%20control.%20How%20can%20I%20bind%20this%20to%20a%20html%20control%3F%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

I want to know the format of the image file that is retrieving using this API url from Sharepoint.
https://xxx.sharepoint.com/sites/projectXYZ/_api/web/GetFileByServerRelativeUrl('/sites/projectXYZ/D...

I am able to hit this API, but the value is returned in a diff format. Please see the image.

 

What is the file format? Is it base64 or something else?
I want to bind this file to a Power Apps PCF html control. How can I bind this to a html control? Thank you.

0 Replies