当前位置:网站首页>Solve the problem of false Base64 character in Base64
Solve the problem of false Base64 character in Base64
2022-07-29 08:40: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;
}Change to
byte[] bytes = Base64.getMimeDecoder().decode(base64);
边栏推荐
- Centos7/8 command line installation Oracle11g
- Fastjson's tojsonstring() source code analysis for special processing of time classes - "deepnova developer community"
- 深度学习(1):银行客户流失预测
- 2022危险化学品经营单位主要负责人操作证考试题库及答案
- Cloud security daily 220712: the IBM integration bus integration solution has found a vulnerability in the execution of arbitrary code, which needs to be upgraded as soon as possible
- 多重背包,朴素及其二进制优化
- Virtual augmentation and reality Part 2 (I'm a Firebird)
- User identity identification and account system practice
- Sudoku (DFS)
- centos7/8命令行安装Oracle11g
猜你喜欢

BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended

HC-SR04超声波测距模块使用方法和例程(STM32)

深度学习(2):图片文字识别

Demonstration and solution of dirty reading, unrepeatable reading and unreal reading

Sword finger offer 50. the first character that appears only once

Day15 (day16 extension): file contains vulnerability

Day5: PHP simple syntax and usage

What if official account does not support markdown format file preparation?

优秀的Allegro Skill推荐

Implementation of support vector machine with ml11 sklearn
随机推荐
Error reporting when adding fields to sap se11 transparent table: structural changes at the field level (conversion table xxxxx)
Implementation of support vector machine with ml11 sklearn
Crawling JS encrypted data of playwright actual combat case
Osgsimplegl3 combined with renderdoc tool
HC-SR04超声波测距模块使用方法和例程(STM32)
QT version of Snake game project
To create a thread pool for the rate, start the core thread
Markdown concise grammar manual
LeetCode力扣题目总结(题目编号:53、3、141、面试题022、剑指offer链表中环的入口节点、20、19、牛客NC1、103、1143、牛客127)
分组背包
How to quickly experience oneos
ROS common instructions
7.1-default-arguments
Basic shell operations (Part 1)
7.2-function-overloading
【Transformer】SegFormer:Simple and Efficient Design for Semantic Segmentation with Transformers
Flask reports an error runtimeerror: the session is unavailable because no secret key was set
Vs2019 compilation cryengine failure problem handling
Clickhouse learning (III) table engine
Normal visualization