wood burning stoves 2.0*
The moose likes JSP and the fly likes How to capture image using external webcam in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to capture image using external webcam in jsp" Watch "How to capture image using external webcam in jsp" New topic
Author

How to capture image using external webcam in jsp

akash shrimali
Ranch Hand

Joined: Jul 28, 2010
Posts: 45
How to capture image using external webcam in jsp ?

Please provide code for capturing image using webcam : Whensoever a jsp page gets loaded up, webcam must be switched on in webpage. On the click of capture button it must capture image into an image folder.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

JSP is not going to be of any help to you with this. JSP is simply a server-side templating engine for generating HTML pages.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
akash shrimali
Ranch Hand

Joined: Jul 28, 2010
Posts: 45
I want to capture image from webcam on my webpage, how can I do using HTML5 or J-query
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Neither of HTML5 or jQuery will help as HTML and JavaScript have no access to the hardware of the client system. Think of the security nightmare that would ensue could any old web page start the client's webcam or other hardware.

You'll likely need some heavyweight fat client running on the client, or perhaps to write a browser extension.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2713
    
    5

You can also think of Flash as an option.


SCJP, SCWCD.
|Asking Good Questions|
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 270
    
    4

Actually, JavaScript will have access to cameras and other devices just as soon as support picks up.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

But that doesn't help now or with legacy browsers. It will be many years before that's a viable option. The OP needs to explore alternate mechanisms for now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to capture image using external webcam in jsp
 
Similar Threads
capturing image using webcam in java
capturing sequence of images from a webcam
Camera feed
connect a webcam via java
JMF : How to capture videos