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()+"在儲存圖層時");
            }

arrow
arrow
    全站熱搜

    pdyurfof 發表在 痞客邦 留言(0) 人氣()