vb.net using ashx handler to get image from SQL Server
问题 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 table and send it to the page. It does not work. I have tested the query itself and I am getting data. The handler: <%@ WebHandler Language="VB" Class="EmpImageHandler" %> Imports System Imports System.Web Imports System.Drawing Imports System.Drawing.Imaging Imports System.IO Imports System.Data Imports System.Data.SqlClient Public Class