KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to store an image uploaded by the user into the database with a LONGBLOB attribute... I ran into a problem with a PreparedStatement that has two methods to set a blob which are: public void setBinaryStream(int parameterIndex, InputStream x) public void setBlob(int parameterIndex, Blob x) public void setBlob(int parameterIndex, InputStream inputStream) Now the problem is I have a BufferedImage object which must be converted into Blob or InputStream to upload... How can I do this without losing the original image format or quality?
Tags (comma-separated)
Save Edits
Cancel