close
filepath是要儲存的路徑
FileBS是圖檔的byte[]
------------------------------
try
{
FileStream BFile = new FileStream(filepath, FileMode.Create); //開啟"D:\test.txt"
BFile.Write(FileBS, 0, FileBS.GetUpperBound(0) + 1);
BFile.Flush();
BFile.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString()+"在儲存圖層時");
}
全站熱搜