简体   繁体   中英

Read POST request body PDF content and create new PDF File

I want to create a REST POST endpoint for receiving a PDF file and converting it into a byte array.

The content of the request.getBody() looks like this. Made the call by Postman and attached file via binary option.

在此处输入图像描述

Thanks everyone!

Solved it by encoding the message in Base64 before sending it in the body of the message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM