Hi Team,
I am facing a issue while saving my pdf files to the sharepoint 2013 library.
I am using send an http request action which executes successfully, creates the pdf file in library but looks like it is only creating file with no content.
File is library:

Flow run:


Below is what I am getting when trying to open the file from library:

Actual Flow:

If I use Create file instead of send http request action, I get error as "Resource not found". This also creates a pdf file but the file is completely not opening (not even giving signature error as with send http request action above)


The third option I tridd is to save the pdf file from email attachment to sharepoint library.
That also runs successfully and create the pdf file but with no content.
From all above options, I tried creating a simple txt file with small content in it, and it created and opening without any issues. The issue seems to be only with pdf file.
Looks like the pdf file is not save with correct format or content.
I tried to use file content as base64ToBinary, but it fails with below error:


base64ToBinary(outputs('Get_file_content_2')?['body'])
Any idea what I am missing in my actions?
Thanks,Vkas