You want to do this in a web page? There is pretty much no way you are
going to be able to do this with ASP.NET.
You would have to embed a .NET control in your page, and have the user
installing it give it permissions to call unmanaged code to do this (since
there are no managed apis for doing this). Quite frankly, it's not worth
it.
You would be better off creating an ActiveX control in unmanaged code,
and having the user install that. ActiveX controls are not affected by code
access security.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<ro***********@gmail.comwrote in message
news:11**********************@h44g2000cwa.googlegr oups.com...
>I want to access a flatbed iomage scanner from a web page, and upload
the file to a database.
I have looked around, and have read about WIA, but all the documents
relating to WIA was written in 2002, so surely there mist be some new
stuff available in 2005?
What is the best way to do this?
I don't want to buy a control, I would like to write my own, easy to
use code.