Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Saving a document as a Blob into an OracleDatabase
Hello,
I need to store documents and files which have been uploaded via the Upload-Component of Vaadin in my Oracle-Database. I've done this so many times, but not with the SQLContainer. I have everything set up, but when I want to commit the new Item it gives me the following Exception:
java.sql.SQLException: Data type for parameter 1 not supported by SQLContainer: oracle.jdbc.OracleBlob
How can I store the Byte[] in the Database?
I did it with procedure.
public OutputStream receiveUpload(String filename, String mimeType) {
nameFile= filename;
typeFile= mimeType;
output = new ByteArrayOutputStream();
return output;
}
and then
output.toByteArray();
that you will use in procedure to upload