Display image from database in ASP.net with C#

前端 未结 4 1452
醉话见心
醉话见心 2020-11-29 11:36

I know this kind of question has been asked many times. Yet I don\'t succeed in displaying an image from my db on a page.

I tried the following method.



        
4条回答
  •  一整个雨季
    2020-11-29 12:34

    Make sure you call Response.Flush(); and also Response.End(); and see if that does the trick

    Also, your content type has a misspelling. Is not "images/jpgeg" I think it's "image/jpeg"

    EDIT: Yes, I just confirmed in Wikipedia that the correct content-type is image/jpeg.

提交回复
热议问题