byte[] bytes = faxService.DownloadFile(FileName);
MemoryStream memStream = new MemoryStream(bytes);
Bitmap myImage = new Bitmap(memStream);
try
{
pictureBox.Image = myImage;
pictureBox.SizeMode = PictureBoxSizeMode.AutoSize;
}
catch (Exception ex)
{
MessageBoxShowt("ex.Message");
pictureBox.Image = null;
}
finally
{
if (memStream != null)
{
memStream.Close();
memStream.Dispose();
}
}