The problem with using an applet is that usually it wouldn't have access to files on the client machine. The alternative is to use straight html with a FORM with an <input type="file"> in it which will produce a proper file selector dialog on the client and then send the file data up to the server.
JavaPro January 2002 has a good article on how to do this, which we have successfully cannibalised for sending mpx files to our application. Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -----Original Message----- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:38 AM To: tomcatGroup Subject: how can a client upload file via an applet hello, i am trying to write an applet that has an file upload service. Users will able to give the full path of their files to the applet (c:\files\file1.txt for instance) as input and applet will going to get the contents of this file and write the content to the database which is in the server. how can i accomplish this task? thanks in advance, serdar --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
