How is an image served from an aspx extension url?

Can someone tell how to create such urls

for example if you see the url

http://office.microsoft.com/global/images/default.aspx?assetid=ZA103873861033

You are redirecting an image.

My question is that this url is an image ... an aspx extension ... how is this possible. how to create this type of url

thank

+3
source share
5 answers

This is a general method for displaying an image that is stored as a binary in the database. One textbook, among many, can be found here .

, aspx, URL, , . , , .

"" . "" .

+4

ContentType

  HttpContext.Response.ContentType = "image/jpeg";
+4

- *.ashx ashx. , u , . Response.WriteFile(...)

0

WWW. , URL-, /MIME-type. HTTP-, URL- HTTP. , ASP.NET.

0

, Server.Transfer() ( ) . , MIME, , . , URL .

0
source

Source: https://habr.com/ru/post/1787927/


All Articles