|
@@ -102,7 +102,7 @@ public class OCRUtil {
|
|
|
*/
|
|
|
private static String getFileContentAsBase64(String path, String imageBase64, boolean urlEncode) throws IOException {
|
|
|
String base64 = imageBase64;
|
|
|
- if (StringUtils.isBlank(path)) {
|
|
|
+ if (StringUtils.isNotBlank(path)) {
|
|
|
byte[] b = Files.readAllBytes(Paths.get(path));
|
|
|
base64 = Base64.getEncoder().encodeToString(b);
|
|
|
}
|