반응형
MultipartFile file
byte [] byteArr=file.getBytes();
InputStream inputStream = new ByteArrayInputStream(byteArr);
// Reads the image file into memory
ByteString imgBytes = ByteString.readFrom(inputStream);반응형
'De2o freelancer (OCR)' 카테고리의 다른 글
| postman file parameter (0) | 2020.09.24 |
|---|---|
| s3 저장 경로 수정 (0) | 2020.09.24 |
| Spring File Size Error (0) | 2020.09.22 |
| Spring + OCR 기능 구현 (0) | 2020.09.21 |
| Spring Security Resource (0) | 2020.09.18 |