November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Anders (and Hugo).
We've previously done numourous implementations relying on a custom HttpHandler for Media in Episerver. It has e.g. been used for tracking downloads and enforcing access control for first download (kind of a gated approach to documents).
I've shared some of the important code from our implementation as a Gist on Github. I hope that can help you move forward. Be aware that it has been taken out a bigger context.
https://gist.github.com/casper-rasmussen/8ba5a1135fadc79a87b9d53cc409fc5a
Casper Aagaard Rasmussen
Hi Casper,
Thank you very much. We changed some code in your example and now everything is working as we like :)
Best Regards
Hi, there,
I need to do some extra processing on a media type. I am following the code sample provided on this page.
http://world.episerver.com/documentation/items/developers-guide/episerver-cms/75/content/assets-and-media/media-types-and-templates/
I have confirmed that the handler gets called when that media type is called. The issue is that it is not returning the pdf file.
So I have two questions. First, is there a method that the framework provides to serve blobs?
And the second question. In case there is no method to server blobs, is there a method to turn blobs into a Binary Stream?
Thanks in advance.