private void queryFromStreamButton_Click(object sender, EventArgs e) { try { System.IO.FileStream stream = new System.IO.FileStream(filename, System.IO.FileMode.Open, System.IO.FileAccess.Read); AppendFileInfo(ImageX.QueryFromStream(imagXpress1, stream, 1)); stream.Close(); } catch (Accusoft.ImagXpressSdk.ImagXpressException ex) { MessageBox.Show(ex.Message); } }