Hi
We want to copy a file on server machine to client, user will use browser to request, on process of request it has to copy a file from server specified location to client machine fixed location.
I think this can be achined using apple.
if then how i will open a stream on file which is in server.
server IP : 10.20.30.40 at c:\sample\discloser.pdf
Client IP : 11:22:33:44 at c:\download
JavaWeb Development
Last Comment
vittalmareddy
8/22/2022 - Mon
CEHJ
If it's mounted as a network share, just try the UNC name
On client side PC (I guess a webpage is invoked) you will either be prompted where to save a file (no page), or you'll be able to handle the request by saving the contents somewhere (you also provide a page, not only server side).
vittalmareddy
ASKER
This is we don't want, behind the screen it should copy to the client machine, solution we are tyring is.
Applet, which does reading a file from server and write into a new file in client location.
Creating inputstream using File source = new File("\\\\10.20.30.40\\sharename\\filename"); on shared folder in server.
Creating output stream in client machine on fixed location.
http://technojeeves.com/joomla/index.php/free/51-copying-streams
Open in new window