How to provide input in HTTP request

Hi All,
I’m trying to pass an pdf/txt/excel file as an input to an API but i can’t find any solution. So can any one help me out.

Thanks,
Harsh

@Harsh95
Knowing which API will go a long way towards being able to help you. A typical API should have documentation that describes how to use it.

Usually when uploading a file to an API you have to read the contents, convert them to a format the API can understand (base 64 is common from what I’ve seen), and then pass that data in. Then the file is decoded from the base 64 string you provided by the server you’re uploading it to.

Thanks @DanielMitchell