here is my DB:

ImageHandler.ashx
public class ImageHandler : IHttpHandler {
ImageDataDataContext image = new ImageDataDataContext();
public void ProcessRequest (HttpContext context) {
string imageid = context.Request.QueryString["ImID"];
var ketqua = (from img in image.tblImgs
where img.imgID == int.Parse(imageid)
select new
{
img.imgData
}).First();
context.Response.BinaryWrite((byte[])ketqua); //Cannot convert type 'AnonymousType#1' to 'byte[]' context.Response.End();
}
public bool IsReusable {
get {
return false;
}
}
}
Can you pls help me how to correct the error. thanks :)

brunda kRank #3,804 · 389 reputationPosted Mar 2, 2013, 7:37 AM EST
VulpesRank #55 · 29.2K reputationPosted Mar 2, 2013, 8:32 AM EST
nothing else23 reputationPosted Mar 2, 2013, 4:05 PM EST
@vulpes.. thank for replying, but it's says:
'System.Data.Linq.Binary' does not contain a definition for 'Save' and no extension method 'Save' accepting a first argument of type 'System.Data.Linq.Binary' could be found (are you missing a using directive or an assembly reference?)
VulpesRank #55 · 29.2K reputationPosted Mar 3, 2013, 12:44 AM EST
nothing else23 reputationPosted Mar 3, 2013, 10:46 PM EST
thank you so much...It's work now :)