create your own FileItemFactory that returns a DatabaseImageStorageFileItem
(which you'll have to create).  When the request is processed, your
DatabaseImageStorageFileItem
will be created, and then getOutputStream will be called, which you should
use to return a stream that will write into the database (or, temporarily
into memory, later to be saved).  I've never had to do this, so I can't be a
whole lot more help, but that should get you going.

On Tue, May 25, 2010 at 4:27 PM, mdh <[email protected]> wrote:

>
> What I'm actually doing is importing an image into a database. My code
> opens
> an input stream on the file selected by the user
> (FileUploadField.getFileUpload().getInputStream()) , and uses that to
> create
> a blob in the database.
>
> I don't do any file writing in my code, that's done in the background by
> the
> wicket code. I don't think I can stop the wicket code doing this, and I
> don't think I should as it seems to use temporary files as part of the
> upload process.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-file-upload-tp2230621p2230746.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to