Generation

generate functionTue, 28 Mar 2023

apache poi image

public byte[] getImage(String filePath) throws IOException { try(FileInputStream fileInputStream = new FileInputStream(filePath)){ byte[] bytes = IOUtils.toByteArray(fileInputStream); return bytes; } }

Questions about programming?Chat with your personal AI assistant