Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capture image from camera  RSS feed

 
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.
 
Rancher
Posts: 42975
76
  • 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.
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!