MVC GetImage
(Created page with "For example in MVC we have a controller GetImage that expects a object identity and a attribute with a blob, like this: <nowiki>http://localhost:5052/Turnkey/GetImage?img=9!1...")
 
No edit summary
Line 1: Line 1:
For example in MVC we have a controller GetImage that expects a object identity and a attribute with a blob, like this: <nowiki>http://localhost:5052/Turnkey/GetImage?img=9!10-SomeImage</nowiki>
MVC we have a controller GetImage that expects a object identity and a attribute with a blob, like this: <nowiki>http://localhost:5052/Turnkey/GetImage?img=9!10-SomeImage</nowiki>


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


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

Revision as of 14:01, 6 August 2019

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 page was edited 76 days ago on 02/10/2024. What links here