how to integrate web cam in aspx page using c#? - c#

My requirement is to integrate a web camera in aspx page and i need to capure a picture for the customers and insert in the database. I have tried with flash player,Aforge dll and silverlight. Can anyone suggest me an easy way to integrate web camera in aspx page. I have been trying this for a long time now.

DirectShow.Net is really your best option to achieve this functionality. C# and the .Net framework do not provide really any support or API's for webcam access.
http://directshownet.sourceforge.net/about.html

You can you silverlight to detect any USB camera attached your system.
In silverlight there are predefined classes for detecting removable devices attached to the system if you want i can give you the working code .. and steps to do this functionality

U need to use Model PopUp Extender of asp and for that model popup set the source to the Silverlight Page which capture the image and u will need to write the web service which will take the captured image and convert it to the byte array and then it store that Image in the DB these are the steps u will need to do. If u want i can help u with all kind of source code help u will need just try it and tell me if u are ok with this..

Related

Show Leaflet images in C# app

I have a Leaflet website that uses a custom tile set for a game map.
I want to display in my C# client app, tiles from the Leaflet map using basically the same algorithm, as if re-creating leaflet in C#.
I already have the placeholder tiles layed out in a grid and have basic navigation, but running into the problem of knowing the tile values to use for the URL (from leaflet docs):
'http://map.somedomain.com/{layer}/{z}/{x}/{y}.png'
I have the layers names, and I want to know the exact X,Y for each tile from a provided zoom level.
How can I calculate this so that when I send out a download request it doesn't hit file not found?
Hope that makes sense.
Thank you.
PS: I don't have access to windows forms, I am using Unity3D engine, if that makes a difference.
I think you would be best off by going over the sourcecode of L.GridLayer which L.TileLayer is extended from. The _pruneTiles function would be a good starting point:
https://github.com/Leaflet/Leaflet/blob/master/src/layer/tile/GridLayer.js#L204
You Can find a tutorial for embedding Leaflet in a C# app in this book:
Leaflet.js Essentials - Chapter 6

How to Create a Simple C# Audio/Voice recorder in Visual Studio [duplicate]

I just want to implement audio recording tool in our application.The functionality is as follows.
Record an audio through microphone(voice recording)
stop that audio
saving that audio
generate embed code for the same audio
I appreciate your suggessions to implement this.
thanks very much
ASP.NET on its own is not suited for this kind of application. If you want users to be able to record audio on your website, you could take a look at Silverlight 4.0 (vid).
See also this question:
Recording Audio From Web Page
If that's not what you need, please explain your intended purpose more clearly.
This should be done in flash or silverlight. This has not a lot to do with c#.
See http://activeden.net/item/sound-recorder/104191

fingerprint on asp.net

I am trying to do this goal, but I need some alternatives to got it.
I want to read a fingerprint using asp.net,silverlight, actionscript, i need get the finger and display the capture in the window.
I do it in C# with griaule biometrics SDK 2009, only can be possible using a java applet. I dont know if mix java + asp.net can be a good alternative. if yes, how can I to pass the value from asp.net to java applet?
I need some alternatives to do it.
many thanks.
Have you tried using Silverlight?
If you have it working in a regular C# app, it might be possible to get it working in the browser via Silverlight. Then you can display it in that SL app or send it to the server via a web service.

Slideshow with music Control photoalbum like Asp.net

I am searching for an Asp.net control like this one ,that can animate and make dynamically a slideshow with photos from database and music and then show in my asp.net page
Link here:
http://doctorbilic.com/cartea/
The above is coded in PHP
If you want to use Silverlight, then here is what you need:
These links are to source code to make a slideshow
http://www.codeplex.com/SlideShow
http://www.codeplex.com/SlideShow2
This link is to a blog entry on how to add sound to your Silverlight application
http://blogs.silverlight.net/blogs/msnow/archive/2008/07/25/tip-of-the-day-22-how-to-add-sound-effects-music-and-video-to-your-silverlight-app.aspx
Using those together will get you what you want.
Also look at this page. They have a product that will do it for you (also in silverlight) for about $50
This was done in Flash, actually. But you can try using jQuery with all its effects to achieve something close to that.

I want to test flash on my ASP.NET 3.5 website - any info on how i can?

I am using ASP.NET 3.5 and i am busy setting up a test site for the administrators to see if they can host my ASP.NET site with no problems. I have all ready added some Ajax and Session variables and now i want to add some flash in there as well.
I have NO CLUE how to use it and where to start. Would i be able to just get some flash HTML and place it in my page? Can someone please give me some flash code?
Thanks in advance!
There is a nice little tutorial on adding Flash to an ASP.NET page over at Grab Attention with this Free Custom Flasher Control. He goes through the basics of how to modify the HTML and then a bit more advanced stuff.
Just as a side note, you should consider Silverlight instead of Flash.

Categories