Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
bf04a044
Commit
bf04a044
authored
Mar 18, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修復
parent
b479009d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
common/src/main/java/com/winsun/utils/PicturesUtil.java
+7
-3
No files found.
common/src/main/java/com/winsun/utils/PicturesUtil.java
View file @
bf04a044
...
@@ -2,8 +2,8 @@ package com.winsun.utils;
...
@@ -2,8 +2,8 @@ package com.winsun.utils;
import
com.winsun.constant.FilePath
;
import
com.winsun.constant.FilePath
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
sun.misc.BASE64Decoder
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -41,8 +41,12 @@ public class PicturesUtil {
...
@@ -41,8 +41,12 @@ public class PicturesUtil {
/**
/**
* 2.解码成字节数组
* 2.解码成字节数组
*/
*/
filePath
=
FilePath
.
IDCARD
.
getValue
()
+
y
+
"/"
+
h
+
"/"
+
path
+
"/"
+
date
.
getTime
()
+
"."
+
houzhui
;
filePath
=
FilePath
.
BACKGROUNDIMG
.
getValue
()+
"/"
+
y
+
"/"
+
h
+
"/"
+
path
+
"/"
+
date
.
getTime
()
+
"."
+
houzhui
;
//filePath = "C:\\Users\\asus\\Desktop\\新建文件夹\\" + date.getTime()+ "." + houzhui;
String
filePath1
=
FilePath
.
BACKGROUNDIMG
.
getValue
()+
"/"
+
y
+
"/"
+
h
+
"/"
+
path
;
File
dir
=
new
File
(
filePath1
);
if
(!
dir
.
exists
())
{
dir
.
mkdirs
();
}
//byte[] bytes = Base64.getUrlDecoder().decode(base64Data);
//byte[] bytes = Base64.getUrlDecoder().decode(base64Data);
//byte[] bytes =new BASE64Decoder().decodeBuffer(base64Data);
//byte[] bytes =new BASE64Decoder().decodeBuffer(base64Data);
//byte[] bytes = Base64.getDecoder().decode(base64Data);
//byte[] bytes = Base64.getDecoder().decode(base64Data);
...
...
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