vb.net using ashx handler to get image from SQL Server

后端 未结 1 1821
余生分开走
余生分开走 2021-01-27 09:30

I have employee images stored in my EMPPhotos table on SQL Server 2008 R2 in an image datatype. I created a generic handler to get the image from the t

相关标签:
1条回答
  • 2021-01-27 10:11

    Change your ContentType.

    From:

    context.Response.ContentType = "text/bmp"
    

    To:

    context.Response.ContentType = "image/bmp"
    
    0 讨论(0)
提交回复
热议问题