Send/recieve files between clients through applet
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
Re: Send/recieve files between clients through applet
If you make a connection shouldn't you be able to send data?
Re: Send/recieve files between clients through applet
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?
Re: Send/recieve files between clients through applet
I'd go through the server unless you want to allow and worry about setting up direct access.
Re: Send/recieve files between clients through applet
I believe applets cannot access IO channels
Re: Send/recieve files between clients through applet
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/
Re: Send/recieve files between clients through applet
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
Re: Send/recieve files between clients through applet
Re: Send/recieve files between clients through applet
Quote:
Originally Posted by chthong
you still need to access the client to install the policy file and it can't be done from within an Applet ;)
Re: Send/recieve files between clients through applet
Then is that not possible for me to implement the send/recieved file between clients?
http://www-personal.umich.edu/~lside...ed-applet.html
Code:
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.
Re: Send/recieve files between clients through applet
you can only "buy" a certificate for your applet
Re: Send/recieve files between clients through applet
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.
Re: Send/recieve files between clients through applet
Quote:
Originally Posted by System_Error
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