Results 1 to 13 of 13

Thread: Send/recieve files between clients through applet

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    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

  2. #2
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Send/recieve files between clients through applet

    If you make a connection shouldn't you be able to send data?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    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?

  4. #4
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    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/

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    Re: Send/recieve files between clients through applet


  9. #9
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    64

    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.

  11. #11
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  12. #12
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.

  13. #13
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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
    "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
  •  



Click Here to Expand Forum to Full Width