Exist a object FormFile in struts than support upload of files
Here a few code and attach a file helper than do convert.
Sorry for my english, but I am just learning.
FormFile theFile = ( FormFile ) digitalizaForm.getFile();
if ( theFile != null && theFile.getFileSize() > 0 )
{
InputStream stream = theFile.getInputStream();
ArchivoUtilidad.getInstance().grabarArchivo( pathArchivoAlmacenado,
theFile.getFileName(), stream );
}
I hope than can help you.
Greetings
Marcelo Flores
CHILE
-----Mensaje original-----
De: Ravi Krishna [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de diciembre de 2003 7:45
Para: [EMAIL PROTECTED]
Asunto: Multipart/form-data support in Struts
Hey Guys , I want to upload data of wave , jpeg and MPEG formats .Is there
any tag in struts which I can use in my application to achieve this???
Your response is highly appreciated
Regards/Ravi Krishna
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]