Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4444

How can I send a File over a REST API?

$
0
0

I am trying to send a file to a server over a REST API. The file could potentially be of any type, though it can be limited in size and type to things that can be sent as email attachments.

I think my approach will be to send the file as a binary stream, and then save that back into a file when it arrives at the server. Is there a built in way to do this in .Net or will I need to manually turn the file contents into a data stream and send that?

For clarity, I have control over both the client and server code, so I am not restricted to any particular approach.


Viewing all articles
Browse latest Browse all 4444

Trending Articles