Can anyone give me a quick pointer on how I can get an OpenRasta handler that returns an array of bytes. To be exposed in ResourceSpace without its JSON or XML object. that is, I don’t want it to be transcoded, I just want to set the media type to “image / PNG” or similar.
Using ASP.Net MVC I can do this with FileContentResult by returning
File(myByteArray, "image/PNG");
I just need to know the equivalent of OpenRasta.
thank
source
share