Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

capture image from webcam using java

  Asked By: Kanagaraj    Date: Nov 07    Category: Java    Views: 1808

In my application i am using jmf to detect the webcam device and capture the image and save in DB. Here i having problem after take more the 5 or 6 images its goes to "java heap space " error i cant to find . please help me any one. below i give errors . Advance in thanks

java.lang.OutOfMemoryError: Java heap space
at com.sun.media.BasicPlugIn.validateIntArraySize(BasicPlugIn.java:168)
at com.sun.media.BasicPlugIn.validateData(BasicPlugIn.java:228)
at com.sun.media.codec.video.jpeg.NativeDecoder.process(NativeDecoder.java:306)
at com.sun.media.BasicFilterModule.process(BasicFilterModule.java:322)
at com.sun.media.BasicModule.connectorPushed(BasicModule.java:69)
at com.sun.media.BasicOutputConnector.writeReport(BasicOutputConnector.java:120)
at com.sun.media.SourceThread.process(BasicSourceModule.java:729)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)

Exception in thread "VFW Request Thread" java.lang.OutOfMemoryError: Java heap space
at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:345)
at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
at java.lang.Thread.run(Thread.java:619)



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on capture image from webcam using java Or get search suggestion and latest updates.