m trying to get byte[] array from DB using a web method now how can i convert and open that byte[] into PDF file using java script call function
my web method
public byte[] openAttach(string id, string code)
{
ATTACH_DAL ATT_dal = new ATTACH_DAL();
ATTACH_Entity ATT_ent = new ATTACH_Entity();
ATT_ent.PrpATATID = id;
ATT_ent.PrpATFLNM = code;
ATT_dal.select_Top_1_ATTACH(ATT_ent, "");
//here i retrieve the binary data
return (byte[])ATT_ent.PrpATSORC;
}