Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to store a pdf file on client machine using a web service.

I am unable to find IP address of client machine in web service so that I
can insert pdf file in C-drive of client machine.

I am using asp.net 3.5 using c#. I searched in google but i couldn't get
the correct solution

Please help me..
Posted

1 solution

Are you saying that you want to save into client's C:\ drive using a web service? If that is the case

NO YOU CAN NOT DO IT.

There is no mechanism that allows you to save using webservice. what you can do is call the webservice from the client and the webservice can return your the pdf file.

Even if you know the client's IP address you can not do it. unless you create your own client/server application.

The easy and simple solution, keep your web service, let the client make the request and save the file it self.
 
Share this answer
 
Comments
thatraja 23-Feb-11 15:53pm    
Fine answer Yusuf.
5!
raju melveetilpurayil 23-Feb-11 19:14pm    
good answering with block letters, take my 5
Yusuf 25-Feb-11 12:03pm    
Thanks, I was trying to shout, send message
Espen Harlinn 25-Feb-11 11:26am    
Right, my 5
Yusuf 25-Feb-11 12:02pm    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900