var bin = dgv_p.SelectedCells[5].Value as System.Data.Linq.Binary;
MemoryStream ms = new MemoryStream(bin.ToArray());