Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Take image from Webcam

Status
Not open for further replies.

thankgodfortektips

Programmer
Dec 20, 2005
95
KY
Hi All,

I have an application wrote in VB6. It is a video clock in application. A preview is showing 24-7, then, a person will put there ID number in and it takes a picture of the person clocking in and records the date and time.

The problem I am havin is that I need to make the application web based. I am thinking that I will need javascript, but I cant find anything to show a preview and take the image on the remote computer.

Does anyone know how to make the webcam available on the remote computer? I know I might have to put a third party app on the remote computer, which is not a problem...

thanks in advance.
 
Is creating a DLL out of the original app to control the web came an option? Then use vbscript as your client side language (sense I'm assuming this is on your network)

[sub]____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done[/sub]
 
Thanks onpnt... the reason that I am updating this to be web based is because my current program has to do a update process between the remote databse and local database (which is done by recordsets).

This process is slow and very unstable, also there is a time delay between the update. I have tried it directly over the VPN instead of an update sequence but the internet connection is too slow.

 
Does this database update go from the local database to the remote one, or vice versa?
Is the image data being stored in the remote database?

One option would be to do a combination of both. You already have the code/application for grabbing the picture and this would be much more difficult to redo from scratch possibly complicating the login procedure or (as onpnt was suggesting) requiring an ActiveX object. You could modify the current VB6 application to use an XMLHTTP object to call a URL and pass the relevant information to the server. However this will still be slow if your passing the raw image information.

On the server-side you would have the web page that accept the query from the VB6 application and inserts the data into the remote database. If your passing raw image data your going to need a file upload script to binary read the passed image data and turn it back into a file. The rest of your values could be passed in the querystring as part of the URL the VB6 application is requesting.

While this separation of the two database by putting a web page in between is a good idea in terms of reducing schema dependency (ie, gives you more freedom to change the database structure on the remote server without having to change the VB6 app), your not going to gain any speed unless you use the XMLHTTP object to make an asynchronous call (ie, make the URL call but don't wait around for the result). This will let your VB6 app continue to function as normal and you could then catch the event of the page load completing to determine if there was an error which would require a resend or if everything went through ok. Basically you would be doing the data transfer in a separate thread, allowing the VB6 app to continue working in the foreground while the data transfer is happening slowly in the background.

Not sure if this was helpful or what you were looking for, you may want to look for some additional suggestions in the VB6 forums as well.

-T

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top