Commit e124ac10 by 陶然

优化相机拍照后文件下载问题

parent 5c0f6133
......@@ -1001,17 +1001,13 @@ namespace Kivii.Sample.ImageUploader
private void CanonForm_DownloadCompletely(object sender, EventArgs e)
{
var filePath = (string)sender;
var stream = (Stream)sender;
if (filePath.IsNullOrEmpty()) return;
if(!File.Exists(filePath)) return;
FileInfo fileInfo = new FileInfo(filePath);
//FileInfo fileInfo = new FileInfo(stream);
// 捕获当前帧
Bitmap bitmap = System.Drawing.Image.FromFile(filePath) as Bitmap;
Bitmap bitmap = new Bitmap(stream);
if (bitmap == null) return;
var picName = $"{DateTime.Now.ToString("mmssfff")}_{fileInfo.Name}";
var picName = $"{DateTime.Now.ToString("mmssfff")}";
string reportId = string.Empty;
if (currentReport != null)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment