• Post Reply Bookmark Topic Watch Topic
  • New Topic

uploading 100MB file

 
santharam edara
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i hav to upload 100MB file in webapplication. i am using technologies struts,jdk 1.4 and tamcat 5.5 server how to achive this requriment please suggest ...

i ca able to upload the 20MB file .. but
when i have given the 100MB file my application session is not supporting how i ca maintain the session expire..
[ April 16, 2008: Message edited by: santharam edara ]
 
K Kiran Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Create datasources in tomcathome/conf/server.xml in the context tag of your application.
2) Use org.apache.struts.upload.FormFile class to upload the file.
3) In jsp use the following tag:
<html:file size="41" property="variable_defined_in_ActionForm_class"/>
4) Use prepareStatementObj.setBytes() method to uplaod to the database.

Regards,
Kiran.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!