Click to See Complete Forum and Search --> : Q. this is rather a CGI question


soichih
February 22nd, 2000, 11:11 PM
Well, though this probablly have to do with the CGI or form, but let me post my question here anyway.

I'd like to know the way I can create the webpage that will allow user to upload the picture or any binary data through some kind of form where I can specify the local file name.

Also, here is my fandamental question about the Java, but when I use the file accessing functions in java, does it access to the client local hard drive, or the server's file system or which? Or can Java access to both?

soichi

------------------------------
i am a beginner, and am the one who will be greately appriciated with any type of help.

February 23rd, 2000, 03:55 PM
soichi,

If you write it as an applet, you can call up a file selection dialog, which will let the user select a file on their machine,
then you can read it in, serialize it, and send it across to the server who would then unserialize it and save it to a file on
the server.

I hope this helps

soichih
February 24th, 2000, 10:29 AM
Thank you for your replying. I'd like you to ask one more question. So I can serialize the file using the applet, how can I make the applet to decide if it's opening the file on the server computer or client computer. Could it possible that user can specify the file name of some file in the server computer, and send the data from server to client? (If I can do this, isn't there any security problem with that?)

Thank you

------------------------------
i am a beginner, and am the one who will be greately appriciated with any type of help.