• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Transfer in Instant Messenger

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys i've downladed an instant messenger from planetsourcecode.com called JMessenger. I've modified it to add authentication(Password).Now i would also like it to support File Transfer in the private message as well as web cam. can any one help me out here....i'm totally clueless...
Thanks
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are totally clueless, perhaps you should start with the Java Tutorial. Do a little research and learning up front and you'll save a ton of time and effort over stumbling around in the dark.
(and in case you think I'm blowing smoke, the tutorial includes how to do input and output, so it will answer at least one of your questions)
 
Sahil Malkani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Joe,
Thanks for your suggestion...I know the basics of I/O in Java....the I/O stream,etc...but i dont know how 2 transfer it in a client-server enviornment....How to recognize the file type and other issues matter while you transfer files.I also gotta see to it that it is platform independent...so i cant hard-code a fixed number of files.Its gotta be able to do that over any kind of system.If you know of any other place where i can get more info ....please let me know...Thanks
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you know how to use IO streams you have most of the tools to do what you want. Writing to a file is exactly the same as writing to a network socket (that's why Object Oriented programming is so powerful). Now, exactly how to graft new functionality into the existing code is non-trivial, and I doubt if anyone here could tell you off the tops of their heads how to do it (unless we have one of the JMessenger developers reading here and he/she has given some thought to your task). Your best bet is to start small. Get some code written that does basically what you want to do, like a REALLY simple file transfer program that streams a single file through a socket. After you get that working, read everything you can, code and design documentation, about JMessenger so you understand how it is put together. Then it is up to you to put the pieces together.
Good luck!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic