Register / Login
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
How to convert File object to Formfile object
posted 6 years ago
I am having a file object. I need to convert it into FormFile object. It shows classcastexception when try to type cast it. Please help.
File reqFile = new File("file.txt");
The setReqFile is a private Formfile variable in my form like "private FormFile reqFile;"
Thanks in advance!!
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
How to convert FormFile into BLOB object?
converting to a FormFile object?
could not setThe value in html:file
How to Convert a java.io.File to struts FormFile?
Multiple File Upload using Struts