Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capture image from camera

 
Manu Ashwath
Greenhorn
Posts: 1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developing a application to capture image from webcam using JApplet. I am using eclipse helios, windows 7 and java 1.6. When i run the application in eclipse as Java Applet it works fine but when try adding it in html file using Applet tag it doesnot work.

Please help me out.

Thanks in advance.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While you didn't mention how the code is accessing the camera, I'll bet that it does it in a way that applets are not allowed to do for security reasons. See http://www.coderanch.com/how-to/java/HowCanAnAppletReadFilesOnTheLocalFileSystem for the two principal ways around that; signing the applet is usually to be preferred.

For future question, please read the pages linked off of HowToAskQuestionsOnJavaRanch, particularly ItDoesntWorkIsUseless.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic