aspose file tools*
The moose likes Applets and the fly likes Capture image from camera Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Capture image from camera" Watch "Capture image from camera" New topic
Author

Capture image from camera

Manu Ashwath
Greenhorn

Joined: Feb 18, 2011
Posts: 1

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
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
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.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Capture image from camera