Convert BufferedInputStream into image [duplicate]
Start by verifying that uploadedInputStream is a valid image, prehaps by writing it out using ImageIO.write. You can always use ImageIO.read to read the image back in and write it back out to a ByteArrayInputStream 😉 I did a quick test using H2 database. A few things I noted. Blob#length returns a long, while Blob#getBytes … Read more