Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How do i capture image from my webcam and store it in my sql db, by using java,and my ide is eclipse luna,i am using java 8? plz help me...
Posted
Comments
Richard MacCutchan 14-Apr-15 10:48am    
This question is impossible to answer in a Quick Answers forum. You need to do research into each part for yourself: image capture and database access.

1 solution

How to capture images in Java? Try Webcam Capture API[^]
Here is the sample code to save the captured image:
Webcam webcam = Webcam.getDefault();
webcam.open();
ImageIO.write(webcam.getImage(), "PNG", new File("hello-world.png"));
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900