473,323 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

capture image from webcam using java

In my java application i am using webcam to capture image and save into DB. this is working upto take 4 or 5 images after that ,its showing "Java Heap Space Error" below error

java.lang.OutOfMemoryError: Java heap space
at com.sun.media.BasicPlugIn.validateIntArraySize(Bas icPlugIn.java:168)
at com.sun.media.BasicPlugIn.validateData(BasicPlugIn .java:228)
at com.sun.media.codec.video.jpeg.NativeDecoder.proce ss(NativeDecoder.java:306)
at com.sun.media.BasicFilterModule.process(BasicFilte rModule.java:322)
at com.sun.media.BasicModule.connectorPushed(BasicMod ule.java:69)
at com.sun.media.BasicOutputConnector.writeReport(Bas icOutputConnector.java:120)
at com.sun.media.SourceThread.process(BasicSourceModu le.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.doConne ct(VFWSourceStream.java:345)
at com.sun.media.protocol.vfw.VFWSourceStream.run(VFW SourceStream.java:763)
at java.lang.Thread.run(Thread.java:619)



after that i try to click means its showing some errors. i can't to find the problem. could any one help me please. Advance in thanks
Nov 7 '12 #1
2 3201
It's OutOfMemoryError. I think you forgot to release your image memory after saving it to DB. Could you post the code about how you capture image from webcam?
Mar 18 '14 #2
Frinavale
9,735 Expert Mod 8TB
It would help people to give you an answer to your question if you posted the code that causes the error.
Mar 19 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: kids_pro | last post by:
Hi there, Is it possible to write a C# program to capture image from scanner? Thanks, Kids
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
0
by: indhu | last post by:
Hi all, am new to the VB forum. Anyway, i need a help from u all. i am developing project.where i am using some kind of webcam. capture image thru webcam by cliking capture button in the form. ...
4
tpgames
by: tpgames | last post by:
I've read some tutuorials and forums giving code as to how to upload a file, but I don't need customers to my website to be able to upload anything to a java server. Am I being really dense here? ...
2
by: rashmijha | last post by:
Hello, i need help on - how to access tiff and bmp format using Java i have just started learning java and we are implementing our engineering final year project on image processing using Java....
4
by: Speed | last post by:
Hi, Could you please tell me how to capture an image from my USB webcam using C/C++. I am using the Visual Studio .NET 2005 Environment. Thanks a ton, Speed.
2
by: Speed | last post by:
Hi, Could you please tell me how to capture an image from my USB webcam using C. I am using the Visual Studio .NET 2005 Environment. Thanks a ton, Speed.
2
by: wandflower | last post by:
hi .. can nebody tell me how i can capture real time audio form sum microphone using java... pllzzzzz share ur knowledge ....
1
by: Naha | last post by:
Hi, I am starting a new project where I have to create a office monitoring system, whereby I need to capture images from a webcam and analyse these images using Java advanced imaging in order to...
1
by: ezat azah | last post by:
I am doing a project in C++ to retrieve stream of images from webcam using Codegear compiler. Honestly I am new in C++ languages. After a few research I found out that C++ can do the filtering to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.