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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -