Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3751680
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:06:32+00:00 2026-05-19T09:06:32+00:00

I would like to develop an application that will receive pictures from a camera

  • 0

I would like to develop an application that will receive pictures from a camera and maybe afterwards save it in a database. This is what i want to do:

When the picture is taken it is send to the program immediately (or the program must read the current picture taken) then display it. I will take pictures of many people or things so anytime a picture is taken i want to see the current picture displayed in the program.

I have googled if i can see an example application so that i know that it possible so that i can do mine from scratch. But couldn’t find any so i am not sure if it is possible to do it in java.

So guys am asking for guidelines how i can do it in java. I just need the steps then i will program everything myself.

Thanks.

UPDATE

* It is a desktop application(J2SE).

* The camera will be constantly link to the computer on which the application is running whiles the pictures are been taken via cable for the moment(later maybe wireless).

* I will use any one of the ordinary digital cameras around

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:06:33+00:00Added an answer on May 19, 2026 at 9:06 am

    If JMF (link) runs on your system it is fairly easy to grab photographs from your streaming video. Check this sample code if you run on Windows. (Knowledge blog)

    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import javax.imageio.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.util.*;
    
    
    /**
     * Grabs a frame from a Webcam, overlays the current date and time, and saves the frame as a PNG to c:\webcam.png
     *
     * @author David
     * @version 1.0, 16/01/2004
     */
    public class FrameGrab
    {
        public static void main(String[] args) throws Exception
        {
            // Create capture device
            CaptureDeviceInfo deviceInfo = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");
            Player player = Manager.createRealizedPlayer(deviceInfo.getLocator());
            player.start();
    
            // Wait a few seconds for camera to initialise (otherwise img==null)
            Thread.sleep(3000);
    
            // Grab a frame from the capture device
            FrameGrabbingControl frameGrabber = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl");
            Buffer buf = frameGrabber.grabFrame();
    
            // Convert frame to an buffered image so it can be processed and saved
            Image img = (new BufferToImage((VideoFormat)buf.getFormat()).createImage(buf));
            BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
            Graphics2D g = buffImg.createGraphics();
            g.drawImage(img, null, null);
    
            // Overlay curent time on image
            g.setColor(Color.RED);
            g.setFont(new Font("Verdana", Font.BOLD, 16));
            g.drawString((new Date()).toString(), 10, 25);
    
            // Save image to disk as PNG
            ImageIO.write(buffImg, "png", new File("c:\\webcam.png"));
    
            // Stop using webcam
            player.close();
            player.deallocate();
            System.exit(0);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to develop a mobile application that is able to access all
I would like to develop a poker odds application that can give the probability
We develop Win32 application that access to SQL 2005 database through Linq to SQL.
I would like to develop Adobe Flex applications using Linux and a free environment.
I would like to use Apple's Xcode IDE to develop applications on the OS
I would like to use javascript to develop general-purpose GUI applications. Initially these are
I'm a C# developer. I develop both Windows & Web Applications. I would like
I would like to develop a reusable UI control for iPhone. How should I
I'm starting a new web application that will be made of multiple parts or
Would like to get a list of advantages and disadvantages of using Stored Procedures.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.