I need to pass files as the body of a request to an available API. In the process of sending the request, I have a function that serializes parameters to JSON.
The point is that in c# we cannot serialize a file into JSON. So my question is that which type of data should I convert to? And is there any sample for it
I got the suggestion that converting into the stream but I don't figure it out.
The type of files are CSV, xlsx, and xml