BufferedImage image = ImageIO.read(new File(filePath));
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ImageIO.write(image, type, bos);
byte[] imageBytes = bos.toByteArray();
BASE64Encoder encoder = new BASE64Encoder();
imageString = encoder.encode(imageBytes);
// Base64.encodeBase64String(fileContent);
bos.close();
} catch (IOException e) {