Results 1 to 3 of 3
Thread: Simple Java image stream display
- 08-16-2010, 06:44 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 2
- Rep Power
- 0
Simple Java image stream display
I recently created an application in vb.net which takes a snapshot of
the desktop and saves it as a jpeg (filename = "1.jpg") every 300 ms.
I would like to be able to display the updated picture every time the
image gets update. For example I would like to implement a sort of
streaming web cam server which can be viewed with a browser, but
without the webcam and using a local image.
I tried one solution but there was a problem when the java was trying
to read while the VB.net app was trying to write.
Is there anyway which I would be able to display the image in a browser
as the images are being updated by the vb app?
Thanks for your help!
- 08-16-2010, 07:52 PM #2
Could you have a series of image files: 1.jpg 2.jpg, ... and wrap the number around back to 1 at the end of the series.
Have the vb program save the image with a temp name and then rename it to the next file in the series in one step so there isn't a collusion of writing and reading. The date of the file could be used to determine the last image saved.
What is the configuration of your system? Server, vb program, java program, client viewing images in browser.anyway which I would be able to display the image in a browser
Javascript has a timer that you could use to get images to display in a browser.Last edited by Norm; 08-16-2010 at 10:44 PM. Reason: add JS idea
- 08-17-2010, 01:18 PM #3
Member
- Join Date
- Aug 2010
- Posts
- 2
- Rep Power
- 0
I tried something similiar to what you are proposing (sequenced images) but, there would
eventually be a conflict between the two programs.
Now that I think of it I had them running at different speeds for example the vb was updating every 300ms while the java was 500ms... which would eventually give me a
conflict no matter what...
Hrmm thank you for your response! I think you jostled something in my brain, I'm going to try something tonight and will let you know how it turns out.
Thanks, Mike
Similar Threads
-
Can't display image icons on simple demo
By roadrash in forum New To JavaReplies: 4Last Post: 11-05-2009, 03:27 PM -
Simple Calculator Display Problem :(
By jimbob in forum Java AppletsReplies: 4Last Post: 07-18-2009, 04:13 AM -
raw byte stream to image
By nupurashi in forum Advanced JavaReplies: 2Last Post: 01-29-2009, 07:48 AM -
Help Needed, simple jframe display
By typh0n in forum New To JavaReplies: 7Last Post: 10-03-2008, 01:06 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks