-
Sep 2nd, 2009, 04:09 AM
#1
Upload file (multipart) to database blob
Hi!
I have an issue dealing (at least partially) with an uploaded file via SWF.
I want to get a form with some fields and an attached file into the database in the simplest way (ie. with as less code as possible).
According to the added documentation in SWF 2.0.8, I should have a backing object with a MultiPartFile property, but this has 2 inconveniences.
- It creates a dependency from my object with said MultiPartFile class.
- It makes it impossible to use that same property automatically with Hibernate (for that use a byte[] property would be much more useful) to be saved as a BLOB.
So... I'd really like to go the byte[] way, but, is there some way to accomplish that without having to write a new controller to override initBinder?
By the way, I'm quite a newbie in both Spring and SWF and not native english speaker, so please don't be too harsh on me ;-)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules