java - File uploaded in postgres db -
i'm new of vaadin , i'm developing first application spring , vaadin.
now i'm trying save image inside database. followed description of upload component on vaadin-book (upload component)
what have change if want store in database? can give me example?
the upload component writes received data java.io.outputstream have plenty of freedom in how can process upload content
if want store large object, can write directly stream comes in. see large object support.
if want store bytea
in row, must accumulate in memory pass parameterized query setobject(parameterindex, mydatabuffer, types.blob)
. consume several times object's size in memory, bytea
suited smaller data.
Comments
Post a Comment