how to download a file from server
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anil_Reddy
Posted On:   Tuesday, January 29, 2002 12:29 AM

			


well may question is when we want to
download a file from the server we
get a dialog box asking

1) save file on to

2) open the file from current location

how do i get that box.

can any one help me out on that.

Re: how to download a file from server

Posted By:   Brad_Barnes  
Posted On:   Friday, February 1, 2002 08:40 AM

IBM has a good tutorial on developerWorks about SOckets with Java:
javasocks

How to create the dialog box is up to you. I have no experience with AWT or Swing just yet.

Re: how to download a file from server

Posted By:   Jonathan_Downey  
Posted On:   Wednesday, January 30, 2002 08:40 AM

If you are talking about providing a link on a webpage somewhere that people can click to download, you just put the page on a Web Server with a Click here to get the file



Example: Click here to get the file



Of course, because somefile doesn't exist on the JGuru Server, this won't work here, but on your server just have the file in the same directory.



Or do you mean something a bit more complex (like forcing the file type etc?).



Jonathan.

About | Sitemap | Contact