Open arvin-a opened 7 years ago
Not by default, no. You could implement your own handler.
I want to implement a rest route that will receive a request like /api/fileid/112 and return a binary file to the user to download. Would that still be done by implementing IRouteHandler?
Jup. The default handlers uses json or xml (based on the http request headers) as return type, doesn't support binary.
Is there any way to make GetResponse to return a binary file? I tried the following but it didn't work.