Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
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
杨亮
hnxtbaboot
Commits
4dae4833
Commit
4dae4833
authored
Jan 22, 2021
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fd944d1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
src/main/java/com/founder/controller/TbXwRycjController.java
+0
-22
No files found.
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
4dae4833
...
...
@@ -1733,27 +1733,6 @@ public class TbXwRycjController {
}
}
private
static
MultipartFile
createFileItem
(
String
imgStr
)
{
if
(
imgStr
==
null
)
// 图像数据为空
return
null
;
String
[]
baseStrs
=
imgStr
.
split
(
","
);
BASE64Decoder
decoder
=
new
BASE64Decoder
();
try
{
// Base64解码
byte
[]
bytes
=
decoder
.
decodeBuffer
(
imgStr
);
for
(
int
i
=
0
;
i
<
bytes
.
length
;
++
i
)
{
if
(
bytes
[
i
]
<
0
)
{
// 调整异常数据
bytes
[
i
]
+=
256
;
}
}
return
new
Base64DecodeMultipartFile
(
bytes
,
baseStrs
[
0
]);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
null
;
}
public
static
void
main
(
String
[]
args
)
{
//TbXwRycjController st = new TbXwRycjController();
//String str = st.GetImageStrs("C:/personphoto/201702/007/P51101140000020170220071.jpg");
...
...
@@ -1763,7 +1742,6 @@ public class TbXwRycjController {
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
createFileItem
(
"123"
);
String
str
=
"i/9j/ivo"
;
System
.
out
.
println
(
str
.
indexOf
(
"/9j/"
));
System
.
out
.
println
(
bjDate
(
"2018-10-11 15:12:11"
,
"2018-10-11 15:12:11"
));
...
...
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