Ahoj, mam pokusnou aplikaci ktera pouziva Spring, Hibernate a Stripes. Ted
nemuzu zjistit, jak ulozit uploadnuty soubor do databaze. Soubor uploaduju
pomoci Stripes:
<stripes:form>
...
<stripes:file name="newAttachment"/>
...
</stripes:form>
V ActionBeanu mam ten uploadnuty soubor typu
"net.sourceforge.stripes.action.FileBean". Muzu na nem zavolat metodu save(File
toFile) a soubor ulozit. Ale ja bych ho rad ukladal do databaze pomoci
Hibernate. Nevim ale jak z toho FileBeanu udelat []byte, abych ho mohl ulozit
jako typ "org.springframework.orm.hibernate3.support.BlobByteArrayType". Nebo
jsem uplne mimo misu?