Announcement Announcement Module
Collapse
No announcement yet.
Imageupload NotSerializableException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imageupload NotSerializableException

    Hi.
    I have a mainflow with some subflows (one of the subflows is a image upload).

    If i upload an image, the main flow throws a NotSerializableException.
    One of my non transient attributes (of main flow) has a reference to the uploaded java.awt.image.BufferedImage, but the BufferedImage does not implement the Serializable.

    Has anybody an idea what i can do?

    Thank,
    alex

  • #2
    i would not hold a reference of the bufferedImage in flow scope. perhaps you can only hold a referencing id and delegate to an ImageStoreManager to retrieve the image when you need it.
    the implementation of the ImageStoreManager can hold the reference in memory (you can use the servlet http session to store the image) or you can persist it temporarily in the filesystem.

    Comment

    Working...
    X