Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi All

I want to develop an web application (ASP.NET and C#) that will read image from local computer (Computer of the user browsing that application). While clicking one button in the form, the application should read the image from local computer directory (Directory name is configured). How can I do this. Is it possible to do this either by JAVA SCRIPT or C#

Thanks & Regards
Posted

1 solution

Well, in ASP.NET server side code has access on server machine. They don't have any control on client system - so you cannot use C# server code for the same even if the path is configured.

What is left with you is to use ActiveX file object in Javascript to access client system and files.
To start with, have a look at these: File access via Jsavascript[^]
Link 2[^]
Link 3[^]

Google for more, if needed.
 
Share this answer
 
Comments
shiyas pk 21-Jan-11 1:32am    
Thanks Sandeep... i will check that

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