Java Applet?? - File compression and upload
problem: Client side: 5 files should be found automatically, then be displayed in order to be accepted by the user, then they should be compressed to a gz-File and afterwards uploaded to a server. 1)Does it make sense to use a Java Applet? 2)Java Applets and DTML? 3)Could you describe me a way how to solve this problem? Thanks for any help! Chris
On Thu, May 23, 2002 at 03:21:25PM -0000, chpeer2002 wrote: | problem: | Client side: 5 files should be found automatically, then be displayed | in order to be accepted by the user, then they should be compressed | to a gz-File and afterwards uploaded to a server. | | 1)Does it make sense to use a Java Applet? Not really -- java applets don't have permission to access the filesystem. | 2)Java Applets and DTML? Just as easy as Java Applet and HTML. Stick in an <applet> tag with the proper URLs to locate your applet's jar file(s). | 3)Could you describe me a way how to solve this problem? What is this "found automatically" part supposed to do? One solution is to have the user put the paths into a form and submit it, and do the compression server-side. Otherwise it may be possible to convince the user and their browser to allow the java applet access to the file(s) and use the applet to do the whole deal. HTH, -D -- The Consultant's Curse: When the customer has beaten upon you long enough, give him what he asks for, instead of what he needs. This is very strong medicine, and is normally only required once. GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
On Thu, 23 May 2002, chpeer2002 wrote:
problem: Client side: 5 files should be found automatically, then be displayed in order to be accepted by the user, then they should be compressed to a gz-File and afterwards uploaded to a server.
1)Does it make sense to use a Java Applet? 2)Java Applets and DTML? 3)Could you describe me a way how to solve this problem?
Seems to me the simplest solution to your problem would be to delegate it to an external procedure and ftp. The compression may be a problem unless the ftp agent at the target site has ftp's compression extension. And, of course, you'll have to work through the protections, password, and access rights issues on the target. -dra
participants (3)
-
chpeer2002 -
Dennis Allison -
dman