Skip to Content
0
Former Member
May 22, 2009 at 07:52 AM

File Upload - Code Snippet

78 Views

Hi Java Experts,

We have an application where in the user has to browse a file of type dbf,xls,txt,xml from the local system and upload into the temp path in server. I tried implementing but could write on to txt file and the other file formats get corrupted.

Can I have a common code snippet for reading the file from the client system and saving it on to the server for all the file types.

I am doing the File upload module in Portal Development Kit.

Kindly share me the code snippet if anybody have implemented in their applications?

Regards,

Ganesh N

Edited by: Ganesh Natarajan on May 22, 2009 10:53 AM