Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.Sample.ImageUploader.V4.5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Client.Sample.ImageUploader.V4.5
Commits
e124ac10
Commit
e124ac10
authored
Jun 25, 2024
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化相机拍照后文件下载问题
parent
5c0f6133
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+0
-0
FrmMain.cs
Src/FrmMain.cs
+4
-8
No files found.
Src/FrmMain.Designer.cs
View file @
e124ac10
This diff is collapsed.
Click to expand it.
Src/FrmMain.cs
View file @
e124ac10
...
@@ -1001,17 +1001,13 @@ namespace Kivii.Sample.ImageUploader
...
@@ -1001,17 +1001,13 @@ namespace Kivii.Sample.ImageUploader
private
void
CanonForm_DownloadCompletely
(
object
sender
,
EventArgs
e
)
private
void
CanonForm_DownloadCompletely
(
object
sender
,
EventArgs
e
)
{
{
var
filePath
=
(
string
)
sender
;
var
stream
=
(
Stream
)
sender
;
if
(
filePath
.
IsNullOrEmpty
())
return
;
//FileInfo fileInfo = new FileInfo(stream);
if
(!
File
.
Exists
(
filePath
))
return
;
FileInfo
fileInfo
=
new
FileInfo
(
filePath
);
// 捕获当前帧
// 捕获当前帧
Bitmap
bitmap
=
System
.
Drawing
.
Image
.
FromFile
(
filePath
)
as
Bitmap
;
Bitmap
bitmap
=
new
Bitmap
(
stream
)
;
if
(
bitmap
==
null
)
return
;
if
(
bitmap
==
null
)
return
;
var
picName
=
$"
{
DateTime
.
Now
.
ToString
(
"mmssfff"
)}
_
{
fileInfo
.
Name
}
"
;
var
picName
=
$"
{
DateTime
.
Now
.
ToString
(
"mmssfff"
)}
"
;
string
reportId
=
string
.
Empty
;
string
reportId
=
string
.
Empty
;
if
(
currentReport
!=
null
)
if
(
currentReport
!=
null
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment