Announcement Announcement Module
Collapse
No announcement yet.
Upload file (multipart) to database blob Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ;-)
Working...
X