|
-
Feb 23rd, 2006, 11:59 AM
#1
Thread Starter
Lively Member
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
-
Feb 23rd, 2006, 03:33 PM
#2
Frenzied Member
Re: Send/recieve files between clients through applet
If you make a connection shouldn't you be able to send data?
-
Feb 23rd, 2006, 03:37 PM
#3
Thread Starter
Lively Member
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?
-
Feb 23rd, 2006, 05:04 PM
#4
Frenzied Member
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.
-
Feb 23rd, 2006, 06:01 PM
#5
Re: Send/recieve files between clients through applet
I believe applets cannot access IO channels
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 23rd, 2006, 06:06 PM
#6
Thread Starter
Lively Member
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/
-
Feb 23rd, 2006, 06:20 PM
#7
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 23rd, 2006, 06:33 PM
#8
Thread Starter
Lively Member
Re: Send/recieve files between clients through applet
-
Feb 23rd, 2006, 06:38 PM
#9
Re: Send/recieve files between clients through applet
 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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 23rd, 2006, 07:00 PM
#10
Thread Starter
Lively Member
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.
-
Feb 23rd, 2006, 07:59 PM
#11
Re: Send/recieve files between clients through applet
you can only "buy" a certificate for your applet
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 24th, 2006, 06:14 AM
#12
Frenzied Member
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.
-
Feb 24th, 2006, 09:05 AM
#13
Re: Send/recieve files between clients through applet
 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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|