Transmitting Images

Hey
Can anyone give me a run down of how to load an image from file and then send if through a server to be displayed on a number of clients. I can load the picture okay but i am having trouble getting it sent.
Can someone please give me a step through guide and also fuction and code examples
Thanks

hmm.. this is kind of complicated, but i'll give you the skeleton.
first, read the image file. Not as an image, but as arbitrary binary data (i.e. the result should be either a stream of bytes or an array of bytes.)
Next, upload the data to the server. The server needs something to accept the data (a servlet or a custom server program).
THen either the server sends the data to a list of clients or those clients request it from the server. The clients read the data, make an image of it (look up ImageIO or Toolkit classes), and display it.
please see the essential classes, custom networking, and creating guis with jfc/swing tutorials for details & codwe examples. http://java.sun.com/docs/books/tutorial/index.html
which step do you have problems implementing?

Similar Messages

  • To use a tv as a computer monitor..

    what do i have to get. we want to watch movies that are on my computer on the tv, but were not sure what to do. we have an HDTV.

    It depends on the connections on both the TV as well as the computer if you have VGA on both then you can go VGA to VGA if not you may have to go hdmi to VGA which will require an adapter to accomplish that since there is not a straight cable which offers both of those connections as far as I know.  Basically as long as you have both the same connection on the computer and the television then you are golden remember tho s video wont do it because it only transmits images not audio

  • Setup ports in Time Capsule

    hello folks,
    I replaced my old router (non TC) by a pretty new TC 3Tb.
    I have installed also in my home some cameras that transmites images real time throught out internet using DYNDNS.
    on my previous router I was obliged to setup some specific ports to allow outgoing internet traffic, but after install TimeCapsule, my cameras is not visible.
    So the question is, Can I setup TimeCapsule to allow outbound internet traffic as my previous router ?
    thanks
    CarlosM

    Yes, the same port forwarding rules apply..
    See
    https://discussions.apple.com/community/wireless/airport?view=documents
    Port Mapping documentation.
    But many many people are finding the port opening on the new TC / AE models is flaky.. it will not work reliably.. Welcome to the future.

  • Capture video through TCP/IP protocol in labview

    Hi Friends, How to acquire video data using TCP/IP read? actually i am trying to control a robot using labview. This robot has WiFi card and has an ip 169.254.0.10. Robot control protocols are already burnt into blackfin processor, of the robot, example.... if i enter 8 in string control of front panel, robot will move forward, 2 is backward, 6 is right and 4 is left. Robot has camera and transmits images through tcp/ip protocols. well.... i am able to establish wifi connection between my PC nd robot and i am able to control it simply by entering corresponding numbers in string control of VI but i am not able to acquire video from the camera through TCP/IP read platelet. ( someone has created a java consol for this robot and i downloaded it from online forum. by running this consol i can control the robot and also accquire real time video) but i want to do the same using labview. please help.
    labview version: 8.6
    NI vision 8.6
    vision acquisition 2009
    robot reference
    robot control protocols: http://www.surveyor.com/SRV_protocol.html
    http://www.surveyor.com/SRV_info.html
    journal: http://www.surveyor.com/cgi-bin/robot_journal.cgi
    Forum: http://www.surveyor.com/cgi-bin/yabb2/YaBB.pl
    Attachments:
    roboimage.vi ‏39 KB

    You do realize that you are not actually reading any data, don't you? Your input to the TCP Read VI is the default which is a value of 0. So in essence you are saying read nothing. Also from reading through some of the information you pasted it appears that the video is streamed via a web browser. There simply reading from a TCP port will not accomplish what you want. Do you have the Interent Toolkit? That has an HTTP protocol implementation which may work for you though I don't think it will have what you want. It looks like you need to send an HTTP GET to retrieve the video image. You could also try using ActiveX or .Net to embed a browser window in your application.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Cloned datasource, but unable to use the both at the same time

    I used the AVTransmit java application as sampe to build my applet for transmitting realtime image from the webcam. I desired that it has a container to contain the player and it has a button for RTP transmission.
    I have used the Manager.createCloneableDataSource(ds) to clone the datasource from webcam.
    The applet can display realtime image on the container. While I clicked the button, the container hanged up and then changed to black. But the data can transmit by RTP part. I can receive the transmitted image in another PC.
    Do you have any idea ?
         public void init() {
              Component vc = null;
              Component cp = null;
              JPanel visualContainer = new JPanel();
              visualContainer.setLayout(new BorderLayout());
              JPanel mainPanel = new JPanel();
              mainPanel.setLayout(new GridLayout(2,1));
              JPanel inputPanel = new JPanel();
              inputPanel.setLayout(new GridLayout(2,1));
              Vector vlist = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
              for (int i = 0; i < vlist.size(); i++) {
                   CaptureDeviceInfo vinfo = (CaptureDeviceInfo)vlist.elementAt(i);
                   locator = vinfo.getLocator();
              try {
                   ds = Manager.createDataSource(locator);
              } catch (Exception e) {
                   System.err.println("Unable to create DataSource from : " + locator);
                   System.exit(0);
              ds = Manager.createCloneableDataSource(ds);
              if (ds == null) {
                   System.err.println("Unable to clone the DataSource");
                   System.exit(0);
              try {
                   player = Manager.createRealizedPlayer(ds);               
              } catch (Exception e) {
                   System.err.println("Unable to create a player from the DataSource :" + e);
              player.addControllerListener(new PlayerStateListener());
              //Realize the player
              player.prefetch();
              if (!waitForPlayerState(player.Prefetched)) {
                   System.err.println("Failed to realize the player");
                   //return false;
              if ((vc = player.getVisualComponent()) != null)
                   visualContainer.add(vc, BorderLayout.CENTER);
              if ((cp = player.getVisualComponent()) != null)
                   visualContainer.add(cp, BorderLayout.SOUTH);
              player.start();
              mainPanel.add(visualContainer);
              System.out.println(player);          
              setVisible(true);
              getContentPane().setLayout(new BorderLayout());
              ipAddressField = new JTextField();
              pbField = new JTextField();
              sendButton = new JButton("Submit");
              sendButton.addActionListener(this);
              inputPanel.add(ipAddressField);
              inputPanel.add(pbField);
              inputPanel.add(sendButton);
              mainPanel.add(inputPanel);
              getContentPane().add(mainPanel);
              System.out.println("locator = " + locator);
    // this is the code segment for RTP transmit
              try {
                   processor = javax.media.Manager.createProcessor(ds);          
              } catch (NoProcessorException npe) {
                   return "Couldn't create processor";
              } catch (IOException ioe) {
                   return "IOException creating processor";
              // Wait for it to configure
              boolean result = waitForProcessorState(processor, Processor.Configured);
              if (result == false)
                   return "Couldn't configure processor";
              // Get the tracks from the processor
              TrackControl [] tracks = processor.getTrackControls();
              // Do we have atleast one track?
              if (tracks == null || tracks.length < 1)
                   return "Couldn't find tracks in processor";
              // Set the output content descriptor to RAW_RTP
              // This will limit the supported formats reported from
              // Track.getSupportedFormats to only valid RTP formats.
              ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
              processor.setContentDescriptor(cd);
              Format supported[];
              Format chosen;
              boolean atLeastOneTrack = false;
              // Program the tracks.
              for (int i = 0; i < tracks.length; i++) {
                   Format format = tracks.getFormat();
                   if (tracks[i].isEnabled()) {
                        supported = tracks[i].getSupportedFormats();
                   // We've set the output content to the RAW_RTP.
                   // So all the supported formats should work with RTP.
                   // We'll just pick the first one.
                   if (supported.length > 0) {
                        if (supported[0] instanceof VideoFormat) {
                             // For video formats, we should double check the
                             // sizes since not all formats work in all sizes.
                             chosen = checkForVideoSizes(tracks[i].getFormat(), supported[0]);
                        } else
                             chosen = supported[0];
                             tracks[i].setFormat(chosen);
                             System.err.println("Track " + i + " is set to transmit as:");
                             System.err.println(" " + chosen);
                             atLeastOneTrack = true;
                        } else
                             tracks[i].setEnabled(false);
                        } else
                             tracks[i].setEnabled(false);
              if (!atLeastOneTrack)
                   return "Couldn't set any of the tracks to a valid RTP format";
              // Realize the processor. This will internally create a flow
              // graph and attempt to create an output datasource for JPEG/RTP
              // audio frames.
              result = waitForProcessorState(processor, Controller.Realized);
              if (result == false)
                   return "Couldn't realize processor";
              // Set the JPEG quality to .5.
              setJPEGQuality(processor, 0.5f);
              // Get the output data source of the processor
    Many thank you in advance

    Dear jcparques
    Thank you for your reply.
    I have tried to use the clone datasoure for player and original datasource for RTP transmission, the player displayed black and the RTP successfully, as I can get the live image by another PC. I have tried to use the clone datasoure for RTP and original datasource for player, the player worked normal and the another PC awared the participant joined. It has just waiting the data from RTP.
    I sured the datasource has been cloned as I can System.out.println it, it is not a null.
    Any idea. Thank you very much.

  • IMovie -converting VHS and SVHS tapes to iMovie through Canopus Video Conve

    When I play a VHS tape from a JVC HM-DH30000U player through the Canopus video converter in to iMovie on my Mac OX 10.5, I get a black line area about an inch at the bottom of the picture and the picture is wigglely. I have tried everything I know - under the menu in the VHS player, etc.
    It was working right, I must've changed something in the menu, maybe? It plays plain VHS and S-VHS tapes the same......
    Also, IMovie comes on automatically when I start my Mac. How do I stop that? I checked iMovie preferences, and Finder prefs, now what? Thanks, Marjorie

    What you are seeing is the sync pulse information needed by analog TV - this information is hidden when shown on CRT TV sets because the displayed image is slightly smaller than the transmitted image. Unfortunately, the hidden 'junk' normally hidden by the CRT TV overscan becomes visible when you see the whole image on a computer monitor.

  • Color noise/dithering with MacPro DVI output

    Hello everybody,
    to describe my problem/question I have to give you some additional information.
    I am working for a company that produces KVM extenders. One of our products is an digital extender system which enables the transmission of standard computer signals (keyboard, video, mouse) via CAT cable over distances up to 140 meters.
    In combination with a MacPro (MacPro 4,1, Mac OS X 10.6.5), this extender shows some "peculiarities" when transmitting images.
    The mouse does not move properly at our receiver module; the cursor stutters at the screen.
    In this constellation, however, almost the complete bandwidth is required for image transmission. In order to generally avoid this problem, we use a compression procedure to transmit data. Usually, only image changes instead of full images are transmitted. This method saves bandwidth and results in a stutter-free image. In our case, the compression procedure cannot be applied due to the fact that the MacPro constantly displays a stuttering image.
    In order to clarify this problem we have done some research which I am going to explain in the following.
    The tested graphics cards (ATI Radeon HD 4870 and GeForce GT 120) do not provide static screen content at the digital DVI output, but create a constant image/color noise/dithering.
    Since the compression procedure cannot be applied (only full images are transmitted), the performance at higher resolutions is rather low. This is especially inconvenient for the user because this failure is invisible/irreproducible and there seems to be no possibility to disable this color noise.
    In order to make the color noise visible, we used a screen-capture tool to produce several images of a standard desktop of a Mac OS X installation.
    We took a closer look at these images and realized that the green background does not consist of one RGB color value, but of slightly deviating color values. In order to highlight the different color values, we used a graphic tool and colored the color values with more differing colors.
    Now the color noise is clearly visible. When we looked at the same image with a delay in time, we realized that the color noise was not static but seemed to appear rather randomly. The colors deviate and a stuttering image is displayed!
    The crosscheck against a background without color (white) shows that the color noise does not occur and the image performance of our extenders has evidently improved.
    Now my actual question:
    Does anyone know how to disable this dithering within Mac OS X?
    Thank you in advance for taking the time to read this and maybe give me some hinds to solve the problem.

    Hey Shane
    I hate to go back to an old topic, but i need help.
    I took your advice and bought the Blackmagic Thunderbolt Intensity Shuttle. I have the thunderbolt cable coming out of my iMac and into the Blackmagic box. Out of there I have the RGB cable going to my monitor, however I have no signal. I tried looking into contacting Blackmagic, but no luck. I thought I would ask you, since you seemed to have some knowledge.

  • HP Officejet Pro 8500 Scanner transmits a gray page with no image

    HP Officejet Pro 8500 simply sends a page filled with fuzzy, grey lines with no image.   Iʻm wondering if anyone has experienced the same, what might be causing this, and what the fix is for this.   Thanks - James

    Hello there James, aka @jml18 !
    I read about the scan quality issue you're having with your Officejet 8500, and would like to share my suggestion with you.
    Use this guide for your troubleshooting steps. If the problem continues afterwards, call HP directly to see about replacement or trade in options.
    Scans are Fuzzy or Unclear
    HP's contact info:
    If you are calling within North America, the number is 1-800-474-6836 and for all other regions: click here.
    Have a great day!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • I have a macbook pro, a mini display port to hdmi cable to hook up to my tv (a toshiba 1080p flatscreen).  what do I do to actually get the image on the tv screen?  Do I need another cable for sound?

    I am trying to watch a tv show that I purchased into I-tunes.  I have the cable and it hooks to the TV okay.  The TV shows the regular apple screen that looks like the universe screen - like when it boots up or is doing an upgrade on the OS.  I can't get the image to go from the laptop to the TV.  I tried under displays and it shows the TV as a display but I can't get the image on the TV.......Please help.

    Rwogera wrote:
    I couldn't transmit sound either, do i need another cable like Kim said? i mean it cant be transmitted through this HDMI port? as for me i have one of the latest mac pro with intel core i5..tnx
    I need to know which MacBook Pro you have.  Only mid-2010  and later MBP's transmit sound through MiniDisplay Port to HDMI.  I have no information about the Mac Pro, so you might want to go to that Forum and ask there.

  • Questions regarding using the .monitor command to retur a animated image and we would like feedback to a designed webpage that is monitoring a 5kW windturbine:)

    I'm embedding a front panel image in an existing HTML dokument. I would like to use the command .monitor in the URL together with the refresh command so the VI automatic will reload every 20 secund. This actual work, but simultaneous I want to have the possibility to refresh manually so I don't have to wait 20 sec before new values is shown in the display. Is this possible to do?
    Another question: Since the real time display updates 1-2 times a secund the command .monitor is used to get a animated picture of the Real Time Display.
    There are several ways to add animation on to web pages. The techniques used h
    ere are the �server push� and �client pull�which makes the browser repeatedly reloads a changing inline image to provide crude animated sequences. This is not the most efficient way as this result�s in an image being re-transmitted for each frame of the animation. The command .monitor with the attribute refresh and lifespan in the URL trigger this �server push� and �client pull� techniques.
    I use this automatic refresh uploading of the display so that it each time shows different values, is this called crude animation?Then I'm wondering what I'm suppose to use the command lifespan to?I can't see the use of it in my display.....?
    link to the webpage so you can have a look at the display:
    http://134.7.139.176/.monitor?Real%20Time%20Performance.vi&refresh=20
    This is a project that I'm working together with another Norwegian friend. WE are very happy for feedback on our web page and displays go to: http://www.ece.curtin.edu.au/~peersena/ if you would like to view itThanks

    Annis,
    One of the other things to keep in mind is that the generation of an image does take some computing power so having the generation and the acquistion on the same machine is not always ideal. If you're using the machine that is publishing the front panel just to collect data it's not so much of an issue.
    If you really want to monitor in "Real-Time" using Remote Panels (requies LabVIEW 6.1) is your best option. This posting has more information on using Remote Panels and links to some live examples:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C0660000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=web+control&USEARCHCONTEXT_QUESTION_S=0
    Remote panels makes it possible to control the application remotely as well.
    With .monitor the only way I've been able to manually refresh is to "Shift+Refresh" on the browser.
    Regards,
    Kamran

  • Weird downsampling, pixelated, images in Safari & Firefox

    Since applying the latest update (to Snow Leopard), images on websites look highly pixelated (often background images). After applying the recent update to iPhone - it does the same thing! Perhaps something in the latest webkit release? My wife's iPhone and Mac (without the latest updates) has no issues. Is anyone else experiencing this?

    Yes, I see the big ugly squares. They are what appears whenever extremely heavy JPEG compression is applied to a low-resolution image tht has relatively large areas of similar colors. Something somewhere is applying such compression to the pages, or portions of them, that you are viewing in your browser(s). Your MBP is not doing that: it can't. Either the page images (or parts of them) are being compressed by the website owners or, if every web page is affected, they are being compressed by your ISP in the process of being transmitted to you, as Gordito suggests. That would greatly increase the speed of page loading, but at the expense of image quality. You wouldn't see the image degradation on an iPhone or cell phone — the screen is too small — but on the MBP's high-resolution display it would be much more apparent, IF the MBP were receiving the signal in the same highly compressed form as the phone. If the MBP receives the same web pages through an ISP that doesn't over-compress them, they'll look the way they ought to look. So if you are receiving these web pages through a cellular ISP rather than through a broadband connection, take the MBP to a wifi hotspot and connect through wifi instead. I bet things will look different then.
    Compressing images is something a web browser can't do: a browser just displays the signal that comes to it.

  • Pixelated images in safari, please help.

    Hi everyone,
    Hoping someone can help me with a issue i have with my new macbook pro.
    When browsing the net, safari and firefox show really pixelated images. I thought it might be my internet connection compressing data or something, but i have tried other computers on the same internet connection and the images show perfect...
    So this makes me think its the macbook. I have upgraded snow leopard from 10.6 to 10.6.2 and updated safari, but unfortunately this didnt help my problem. So now i have ended up here, asking you people, coz im out of ideas.
    I will include some screen shots so you can see exactly what i mean.
    Notice the bad quality images and even on google's banner it is pixelated heaps...
    Please help if you can. Its very annoying. Cheers.
    screenshots
    http://i134.photobucket.com/albums/q93/Bonustokin/randon/Screenshot2010-02-13at1 00814PM.png
    http://i134.photobucket.com/albums/q93/Bonustokin/randon/Screenshot2010-02-13at1 00814PM.png

    Yes, I see the big ugly squares. They are what appears whenever extremely heavy JPEG compression is applied to a low-resolution image tht has relatively large areas of similar colors. Something somewhere is applying such compression to the pages, or portions of them, that you are viewing in your browser(s). Your MBP is not doing that: it can't. Either the page images (or parts of them) are being compressed by the website owners or, if every web page is affected, they are being compressed by your ISP in the process of being transmitted to you, as Gordito suggests. That would greatly increase the speed of page loading, but at the expense of image quality. You wouldn't see the image degradation on an iPhone or cell phone — the screen is too small — but on the MBP's high-resolution display it would be much more apparent, IF the MBP were receiving the signal in the same highly compressed form as the phone. If the MBP receives the same web pages through an ISP that doesn't over-compress them, they'll look the way they ought to look. So if you are receiving these web pages through a cellular ISP rather than through a broadband connection, take the MBP to a wifi hotspot and connect through wifi instead. I bet things will look different then.
    Compressing images is something a web browser can't do: a browser just displays the signal that comes to it.

  • Trouble drawing on saved images in whiteboard, please help!

    I use the Image.IO.write(image,"png",file) method to save my whiteboard drawings onto a file and it displays fine when I import it. But when I draw on it it seems some of my whiteboard buttons are "blending in" with the drawing area where the image is. I guess a way to imagine is there is a row of buttons then a panel containing the image. When I draw on the image area the image of the bottons above are mixed in and everything looks bad. Any idea what I am doing wrong in saving the image? thanks!

    Yes, I see the big ugly squares. They are what appears whenever extremely heavy JPEG compression is applied to a low-resolution image tht has relatively large areas of similar colors. Something somewhere is applying such compression to the pages, or portions of them, that you are viewing in your browser(s). Your MBP is not doing that: it can't. Either the page images (or parts of them) are being compressed by the website owners or, if every web page is affected, they are being compressed by your ISP in the process of being transmitted to you, as Gordito suggests. That would greatly increase the speed of page loading, but at the expense of image quality. You wouldn't see the image degradation on an iPhone or cell phone — the screen is too small — but on the MBP's high-resolution display it would be much more apparent, IF the MBP were receiving the signal in the same highly compressed form as the phone. If the MBP receives the same web pages through an ISP that doesn't over-compress them, they'll look the way they ought to look. So if you are receiving these web pages through a cellular ISP rather than through a broadband connection, take the MBP to a wifi hotspot and connect through wifi instead. I bet things will look different then.
    Compressing images is something a web browser can't do: a browser just displays the signal that comes to it.

  • Junk mail still loading images

    Hi -- I've set my Mail program to NOT display remote images, and Junk Mail filtering is on, but if I click on a message marked as "Junk" it still loads up the image! Doesn't this kind of defeat the security involved in marking a message junk? Loading the remote image now tells the spammer that my email address is valid and I am clicking on their messages! How do I tell Mail to stop it? This makes me wary of even trying to check if a message is spam or not in fear of accidentally transmitting my existence to the spammer...

    Hi geefunk3.
    it still loads up the image!
    What image? The setting is just to prevent Mail from loading remote images. There is no harm in Mail displaying images sent as attachments with the message. Only images that require connecting to a remote server to display them are an issue -- see How HTML Email Messages Relate to Unsolicited Commercial Email ("spam").

  • Stream-in images from client to server,without running the transmit code

    Hello all,
    Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
    I should just be able to stream in the images from client to server, without running the transmit code on client.
    Can this be done?
    Thanks in advance

    suppigs wrote:
    Can I know more about this?Sure.
    <Side A>
    You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
    <Side B>
    On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
    Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
    There are a lot of ways to do this, you can google it or look at the following link:
    [http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/]

Maybe you are looking for

  • Get link for placed image

    I am placing a graphic image file on a page in an InDesign (CS6) JavaScript script: var imageArray = page.place(imprintFile, [imprintImageLeft, imprintImageTop]); var imprintImage = imageArray[0]; var imprintImageFrame = imprintImage.parent; var impr

  • DBMS_LDAP adding user to security group on Active Directory

    Hi forum members, I am accessing and manipulating Active Directory using the DBMS_LDAP package and its API's. My initial code is to add a new entry in our MUsers group.After establishing the session and binding it , I supply the required credentials

  • A while ago I asked why I could send pictures thru my verizon/outlook email, but I send it thru gmail now no problems.

    I asked before why I could not send pictures thru my verizon email or my work (outlook email thru my phone) but only by wifi. If I took it off wifi the pictures go through, no problem. SO I go through gmail no problems but never got an answer why it

  • Executing system commands query

    I'm only just starting to program Java although I do have a good grounding in programming other languages so it is probably more a question of familarity, but hopefully someone can answer this problem I am having. What I am trying to do is to execute

  • DataUtil.getDatePattern(usersession) Error in ComplaintCreateHeader.jsp

    Hi Team, I created Custom Application as per document and gets the following error but when execute standard ICSS application working correct. dataUtil.getDatePattern(usersession) Error in ComplaintCreateHeader.jsp  please help anyone face similar is