Last updated 5 years ago
Was this helpful?
參考資料:Bitmap()
參考資料:()
額外參考資料:()
byte[] content; System.Drawing.Bitmap srcImage = new System.Drawing.Bitmap(ImgPath + ImgName); MemoryStream ms = new MemoryStream(); srcImage.Save(ms, System.Drawing.Imaging.ImageFormat.Png); content = ms.GetBuffer();
確認目錄權限,是否無法寫入、無法讀取。
確認檔案權限,是否無法寫入、無法讀取。
目錄是否存在。
無法轉換的圖檔類型
透過Image.FromStream 載入圖片時無法使用Seek方法
輸入的編碼有問題。