Replies: 1 comment
-
Theoretically yes you could...
You'd have to ensure it is rewound after reading so that the output is overwritten. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I was wondering, is there a way to use the response body as an image provider of sorts? We have a dynamic system of file providers that yield files from api controllers (including fairly often images) that could really benefit from ImageSharp.Web post-processing in many cases.
The thing is, we pretty accurately detect that the call is meant to be processed by Uri's used, but I need the input for the ImageSharp.Web middleware to be the Response.Body that is generated by the ApiController.
Is this a thing that can be done by implementing some interfaces or applying some specific configuration? I've looked at the source, but it's pretty complex, so if you could point me into the direction I should be looking at, it would be greatly appreciated.
Thanks in advance.
Regards,
Robert
Beta Was this translation helpful? Give feedback.
All reactions