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();
                    }
                }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-18
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-07-02
  • 2021-07-22
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
相关资源
相似解决方案