Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
0a8edd3c
Commit
0a8edd3c
authored
Mar 30, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内蒙人像对接(内蒙)
parent
ae6a5054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
common/common_utils/src/main/java/com/founder/commonutils/util/Base64Util.java
+1
-0
No files found.
common/common_utils/src/main/java/com/founder/commonutils/util/Base64Util.java
View file @
0a8edd3c
...
@@ -63,6 +63,7 @@ public class Base64Util {
...
@@ -63,6 +63,7 @@ public class Base64Util {
public
static
String
getBase64
(
MultipartFile
imageFile
)
throws
IOException
{
public
static
String
getBase64
(
MultipartFile
imageFile
)
throws
IOException
{
BASE64Encoder
base64Encoder
=
new
BASE64Encoder
();
BASE64Encoder
base64Encoder
=
new
BASE64Encoder
();
String
base64EncoderImg
=
base64Encoder
.
encode
(
imageFile
.
getBytes
());
String
base64EncoderImg
=
base64Encoder
.
encode
(
imageFile
.
getBytes
());
base64EncoderImg
=
base64EncoderImg
.
replaceAll
(
"\r\n"
,
""
);
return
base64EncoderImg
;
return
base64EncoderImg
;
}
}
...
...
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