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

I want to develop a functionality in my web site, that will show images on the web page picked from client machine. Is there any way to do it using C#, asp .net?
Posted

Not really, no. If you insert an img tag that points to the local path, it will show, but there's no cross browser way to reliably get the path from the user, unless you flat out ask them to give you their file paths. I don't see of what use this is, anyhow. Why would I want a website to remember where images are on my local system, and show them to me ?
 
Share this answer
 
Actually i want to give scan feature on the site and Scanner is attached to client machine so after scanning i need to show those images on the page
 
Share this answer
 
Please don't post an 'answer' that really belongs as an edit to your original post.

Well, attaching a scanner is something else again. ASP.NET cannot do that. An OCX control MIGHT be able to, if the scanner is TWAIN compliant, and if the user allows it to run.
 
Share this answer
 
I wouldn't visit a site that I knew could scrape files off a client machine. In fact, I'm pretty sure that unless you convince the user to install an ActiveXcrement module, this is pretty much impossible to do.
 
Share this answer
 

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