当前位置:网站首页>解决Base64 报错 Illegal base64 character
解决Base64 报错 Illegal base64 character
2022-07-29 08:35:00 【susu1083018911】
public static InputStream base64ToInputStream(String base64) {
ByteArrayInputStream stream = null;
try {
//byte[] bytes = Base64.getDecoder().decode(base64);
byte[] bytes = Base64.getMimeDecoder().decode(base64);
stream = new ByteArrayInputStream(bytes);
} catch (Exception e) {
e.printStackTrace();
}
return stream;
}改成
byte[] bytes = Base64.getMimeDecoder().decode(base64);
边栏推荐
- Time function in MySQL
- ADB common command list
- Collation of ml.net related resources
- 6.3 references
- Hal learning notes - Advanced timer of 7 timer
- Day15 (day16 extension): file contains vulnerability
- MySQL statement mind map
- Cmake setting vs Startup running environment path
- OSG advanced sequence
- 预训练模型与传统方法在排序上有啥不同?
猜你喜欢

DC motor speed regulation system based on 51 single chip microcomputer (use of L298)

Simple operation of SQL server data table

Basic shell operations (Part 2)

The computer video pauses and resumes, and the sound suddenly becomes louder

Day4: SQL server is easy to use

Segment paging and segment page combination

Back up Google or other browser plug-ins

Cluster usage specification

C language macro define command exercise

DC motor control system based on DAC0832
随机推荐
How to quickly experience oneos
Fastjson's tojsonstring() source code analysis for special processing of time classes - "deepnova developer community"
Sword finger offer 50. the first character that appears only once
Clickhouse learning (I) Clickhouse?
node:文件写入数据(readFile、writeFile),覆盖与增量两种模式
Classic interview question: = = the difference between equals
Chrony 时间同步
Pnpm install appears: err_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
Personal study notes
Cmake setting vs Startup running environment path
Week 2: convolutional neural network basics
Solve the problem of MSVC2017 compiler with yellow exclamation mark in kits component of QT
【Transformer】ATS: Adaptive Token Sampling For Efficient Vision Transformers
Several ways of debugging support under oneos
Background management system platform of new energy charging pile
Inclination sensor accuracy calibration test
Thrift installation manual
Transaction management in SQL Server
ML.NET相关资源整理
Detailed steps of installing MySQL 5.7 for windows