I have a Action Form that contains a FormFile object that holds the uploaded file for an image.
When the container trys to serialize my form an NotSerializableException is being thrown.


I have looked at the source code and found the FormFile's baseObject DiskFile does not implement the serializable interface, is there a special reason it does not?

I searched the archives and have not found a solution to this.

I have a couple of ideas for handling this:
1.) I could make the FormFile fields in the form transient excluding them from the serialization process
this has some obvious problems of not serializing the FormFileObjects.


2.) Extend the DiskFile Object to extend the Serializable inteface. This seems like more work than
should need to be done.


My questions are:
Has any one had to do either of the ideas that I have suggested?
What are the problems associated with each of the solutions beyond the obvious stated above?
Does any one have any other ideas that differ from the above.


Your Ideas are very much appreciated, Than you in advance.

Stephan

_________________________________________________________________
Try MSN Messenger 6.0 with integrated webcam functionality! http://www.msnmessenger-download.com/tracking/reach_webcam



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to