How to extract body and file name from mulitpart file?
问题 I am writing an AWS lambada in Java. This lambda acts as a handler for APIGatewayProxyRequestEvent. API gateway endpoint is sending a file as a multipart/form-data in the body. public class LambdaHandler extends SpringBootRequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> { --- } while trying to implement the business logic, I am first extracting the body into an array of bytes byte[] file = Base64.decodeBase64(event.getBody().getBytes()); But when I write these bytes