I am trying to write a httphandler to retrieve image url and later display it on a image control i am using this code but its not working \[code\]OleDbConnection mDB = new OleDbConnection( ConfigurationManager.ConnectionStrings["AccessConnection"].ConnectionString); mDB.Open(); OleDbCommand cmd = new OleDbCommand("select pProductId from Products where pProductId=" + context.Request.QueryString["ImageID"], mDB); OleDbDataReader rdr = cmd.ExecuteReader(); rdr.Read(); context.Response.BinaryWrite((byte[])rdr[0]); mDB.Close(); context.Response.End(); */\[/code\]sorry that i caused a confusion earlier in the SELECT statement the pProductId does not contain the URL of the image instead pProductImage is the field that contain the URL. i am using the Id to identify which image to display accordingly.this is my expected output:\[code\]<img src="http://stackoverflow.com/questions/14057730/ImgHandler.ashx?pProductId=2" alt="" />\[/code\]i cant place image this is the link to my error msg:http://imgur.com/Cix67