MVC GetImage
No edit summary
No edit summary
Line 6: Line 6:


This controller may be used by angular views as well - if you want to construct a link to download a file or something without actually having the attribute loaded (if it is marked as delayed fetch)
This controller may be used by angular views as well - if you want to construct a link to download a file or something without actually having the attribute loaded (if it is marked as delayed fetch)
See also [[The_ExternalId_explained]] to create a more long lived link

Revision as of 11:51, 11 May 2020

MVC we have a controller GetImage that expects a object identity and a attribute with a blob, like this: http://localhost:5052/Turnkey/GetImage?img=9!10-SomeImage

You may append yet another section with '-' that denotes contenttype header to send to browser:

http://localhost:5052/Turnkey/GetImage?img=9!10-SomeImage-application%2Fpdf will use application/pdf as content type.

This controller may be used by angular views as well - if you want to construct a link to download a file or something without actually having the attribute loaded (if it is marked as delayed fetch)

See also The_ExternalId_explained to create a more long lived link

This page was edited 91 days ago on 02/10/2024. What links here