Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to capture image using external webcam in jsp

 
akash shrimali
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
akash shrimali
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also think of Flash as an option.
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, JavaScript will have access to cameras and other devices just as soon as support picks up.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic