PDA

Click to See Complete Forum and Search --> : Send/recieve files between clients through applet


chthong
Feb 23rd, 2006, 10:59 AM
Currently i am developing a chat room using Applet. Client will connect to my server using socket so that client can send instant message to other client. I have another module which is send/recieve file between client. May i know how do send/recieve file between client? Do i have to overcome the security issue in applet? Thanks

System_Error
Feb 23rd, 2006, 02:33 PM
If you make a connection shouldn't you be able to send data?

chthong
Feb 23rd, 2006, 02:37 PM
What should the flow be to send the data from client to client? Should it be
clientA -> server -> clientB
or chould it be
clientA -> clientB
Do i need to open another socket just to send/recieve file?

System_Error
Feb 23rd, 2006, 04:04 PM
I'd go through the server unless you want to allow and worry about setting up direct access.

ComputerJy
Feb 23rd, 2006, 05:01 PM
I believe applets cannot access IO channels

chthong
Feb 23rd, 2006, 05:06 PM
Yup the security issues. But the java.sun mention about trusted applet might able to overcome the security issues. I read through the articles, but still not understand. Am i able to send files from client to client?

http://java.sun.com/sfaq/

ComputerJy
Feb 23rd, 2006, 05:20 PM
I have 2 points:
1- Applets cannot access I/O channels anyway (Windows doesn't allow them)
2- There is no such thing Client-Client a server must exist in between

So I still say no you can't do it
but You can create a java App that works like an IM

chthong
Feb 23rd, 2006, 05:33 PM
http://java.sun.com/developer/technicalArticles/Security/Signed/

Need to be so complicated?

ComputerJy
Feb 23rd, 2006, 05:38 PM
http://java.sun.com/developer/technicalArticles/Security/Signed/

Need to be so complicated?
you still need to access the client to install the policy file and it can't be done from within an Applet ;)

chthong
Feb 23rd, 2006, 06:00 PM
Then is that not possible for me to implement the send/recieved file between clients?
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html


The solution to this conundrum is to create obtain a digital certificate and use it to sign the applet. When a well-behaved browser downloads a page that contains a signed applet, before running the applet it displays a certificate in a message box.


So it should be only prompt out a message if i implements signed applet right? But i still don't have any idea.

ComputerJy
Feb 23rd, 2006, 06:59 PM
you can only "buy" a certificate for your applet

System_Error
Feb 24th, 2006, 05:14 AM
Signing an applet will create a crude looking certificate, but not many people will accept it. If you really want the okay clicks, then buy one.

NOTE: Why have a chat application that can send files to users... Shouldn't this be a desktop app? I've never seen an online chat room that allows file transfers.

ComputerJy
Feb 24th, 2006, 08:05 AM
Signing an applet will create a crude looking certificate, but not many people will accept it. If you really want the okay clicks, then buy one.

NOTE: Why have a chat application that can send files to users... Shouldn't this be a desktop app? I've never seen an online chat room that allows file transfers.
They deny that permission for security issues (viruses, bombs, worms, ..etc)
But it can be done....

I was also talking about a desktop app