Image over http

I was trying to send an image from a midlet through the internet as a byte stream. I am using tomcat server. I am using jsp page for receiving the byte stream and storing in a file. But seems, if i send the entire image (15 kbytes) it is not sent.
this problem happens only when it is send through internet. But within LAN it is working.
Any solution.

hi
how u have implement ur connection interface .
Use thread for making connection that will send request for connection after some time(depend on ur sleep() time)
because Internet is much slow as compare to ur LAN speed so i think requesting for connection single time works well for ur LAN but not on internet.
i think u got ur answer
regards
akash
Indiagames Ltd
India
[email protected]

Similar Messages

  • Firefox does not load images over HTTPS

    When viewing secure sites (HTTPS) images are not displayed on FF 3.6.6
    For example: I can not see images on Gmail, Google Images or StumbleUpon
    I have checked the images settings and it automatically loads images from all sites, there are no domains blocked
    There is no add-on to block images
    Javascript is enabled
    I've tested almost all network configuration but the problem persists
    If I inspect the image with Firebug 1.5.4 the image is available as preview
    The same page is correctly displayed on IE8
    I've tested in safe-mode but the error remains
    Again... I suspect it has something to do on how FF 3.6.6 handles HTTPS
    Even if you do not have an answer, post if you experience the same problem.
    Thanks for your help!
    == This happened ==
    Every time Firefox opened
    == After las upgrade

    Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window - See http://kb.mozillazine.org/Resetting_preferences
    See also http://kb.mozillazine.org/Preferences_not_saved
    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Javafx :Media and image over https

    hello
    I want to use javafx to get media files(images, audio, video ) through HTTPS, the thing is when I use MP3 files it works ( after saying 'yes' to the certificate dialog) ,
    For jpeg files, nothing is displayed.
    For WMV files,I got the "Media unavailable: https://localhost/video.wmv" error even saying yes to the certificate dialog.
    so does javafx support https ?
    why did the audio work and not the video ?
    why images didn't get displayed ?
    PS: everything works fine through HTTP.
    if you want me to post some essential code, let me know.
    Thousand thanks

    Either setup your client to trust the certificate chain installed on the server or change the server's certificate chain to chain up to a certificate already trusted by the client.
    My guess is that you did not buy a certificate from a certificate authority. If this is the case I would recommend buying a certificate and installing the certificate on the server as per the server and certificate vendors installation instructions.
    If you want to use a self signed certificate, then you will need to trust the vendor of the self signed certificate (yourself). To do this follow the first option of the stackoverflow answer below on every client.
    http://stackoverflow.com/questions/2893819/telling-java-to-accept-self-signed-ssl-certificate
    <JAVA_HOME>\bin\keytool -import -v -trustcacerts
    -alias server-alias -file server.cer
    -keystore cacerts.jks -keypass changeit
    -storepass changeit

  • Mapi over HTTP issue

    Hi all!
    Hope somebody can help me out. In my test lab, where I`m experimenting with Exchange 2013 SP1 and Outlook 2013 SP1 I came across very annoying thing.
    Let me explain a little bit more about config that worked.
    Outlook 2013 connected to Exchange 2013 via RPC over HTTPS is working great actually really great. I have created my own certs and imported ROOT CA cert to all of my machines and things are working peachy. As part of my plans for 2014 I have to test and
    deploy MAPI over HTTP sometime at the end of 2014 in our company (and migrate fromEX2007 but this is different story).
    OK so I`ve enabled MAPI over HTTP on my test server and configured 5 virtual machines with different accounts to test things out. Started Outlooks, accepted "Your administrator has made change ....." prompts and here we go, I`m connected MAPI/HTTP
    and all works really great.
    Except for one thing. When it does connect, things are super fast and it works as it should. But sometimes it does not connect right away and it is sluggish in performance. Also Outlook is missing "Quick steps" menu, see attached image:
    I restarted all servers, clients, clean Outlook install nothing helps.
    When RPC/HTTPS I could quit and start Outlook 10 times and it worked 10/10 without problems.
    When MAPI/HTTP I restart outlook and it works 6/10, so 4 times I get messed up Outlook and very poor performance.
    Any idea where to start troubleshooting? Maybe Outlook has a bug or 2 with this mode?
    Server is correctly sized and backed up by enough of memory and CPU, mailboxes have 100-3500 items in them.
    Again, RPC/HTTPS works every time without any problem.
    MAPI/HTTP works lets say 6 times without any prolem at all and really works great but 4 times out of 10 it makes me want to throw it away :)
    If someone knows best way to troubleshoot this one, please let me know.
    Regards,
    G

    Hi,
    From your information, when Outlook hang on PC A, there was no problem to connect at the same time from computer B, so the client side related issue causing this problem is more likely. For
    example, when Outlook was trying to connect to Exchange server, it fails due to the temporary Network issue, or it hang when loading something. As far as I know, it may also be caused by the local OST file. But it is difficult to do troubleshooting since there
    could be many possible causes and more logs may be required to do troubleshooting.
    Please try to run Outlook in safe mode by running "Outlook.exe /safe", see if we can reproduce this issue.
    Thanks
    Jessie

  • Overlay a still image over video.

    I am editing a lot of video and have a need to lay an image over the video, like down the left column or even across the bottom.
    What I am doing is editing footage of a poker game we filmed and I want to be able to display the players' hole cards like they do on TV.
    Does anyone have a solution for this? I've looked and looked with no success.
    Thanks for any help you can offer.

    In iMovie 08, when you overlay a photo over video, it takes the whole screen. iMovie 9, which comes out later this month, should have the ability to do what you are describing.
    Also, if you have QuickTime Pro, you can do this as well. QuickTime Pro is not as intuitive as iMovie so get a good book to help. One such book available from frequent forum participant [QuickTime Kirk|http://homepage.mac.com/kkirkster/book/index.html]

  • Question about setting the background from an image over the internet.

    Hello ,
    If I want the background of my panel to be set from an image over the internet directly do I just add that URL right away like this :
    protected final static String imagePath = "http://www.engr.wisc.edu/2010/background.jpg";
       icon = new ImageIcon(AuthScreen.imagePath);
            JPanel panel = new JPanel(){
                protected void paintComponent(Graphics g)
              Dimension d = getSize();
              g.drawImage(icon.getImage(), 0, 0, d.width, d.height, null);
              super.paintComponent(g);
              };instead of this :
    protected final static String imagePath = "d:\\javaapps\\bg.jpg";cuz I did that but it isnt working .
    Thanks.

    I don't see how, try it out:
    import java.awt.*;
    import java.awt.image.*;
    import java.net.URL;
    import javax.swing.*;
    import javax.imageio.*;
    public class ForumJunk{
      ForumJunk(){
        JFrame f = new JFrame("Forum Junk");
        JPanel p = new MyJPanel();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(p);
        f.pack();
        f.setVisible(true);
      public static void main(String[] args) {
        new ForumJunk();
      class MyJPanel extends JPanel{
        BufferedImage bi = null;
        MyJPanel(){
          try{
            bi = ImageIO.read(new URL("http://www.kodiakfishingbc.com/Editor/assets/chris03resize.jpg"));
            this.setPreferredSize(new Dimension(bi.getWidth(), bi.getHeight()));
          }catch(java.io.IOException e){
            System.out.println(e.toString());
        public void paintComponent(Graphics g){
    //      super.paintComponent(g);
          ((Graphics2D)g).setBackground(Color.green);
          g.clearRect(0, 0, bi.getWidth(), bi.getHeight());
          g.drawImage(bi,0, 0, this);
          super.paintComponent(g);
    }

  • Sending images over network socket

    I'm working on a java web server. So far i have managed to get it to send html documents sucessfully to the client web browser, using a BufferedReader, and a PrintWriter object.
    But how should i send images over the socket? using this method doesn't work. Any suggestions?
    Thanks in advance.
    hornetau

    I did it first. You may pay me $10 and get XM2 WebServer 1.2 from my company.
    Ok, I'll help ya out here...
    HTTP protocol in Internet Explorer is "juiced up" meaning that it does not require HTTP data to be correctly sent. To send an image to be deisplayed...
    <html>
    <img src="theImage.gif"></img>
    </html>
    Now, the server will see a GET request like this...
    GET /theImage.gif HTTP/1.1
    Accepts: Image/jpeg, Image/gif, ...
    Your web server (in the IE case just needs to send)...
    output.println(data);
    The data object is a string, that represents the contents of the image.
    To do that, just get the correct File object, connect reader to it, then loop it
    until the reader is no longer ready (reader.ready() != true), as it loops, just append
    the readLine() command to the end of the data string and it will be ok.
    Now this works on IE just fine, using vary small file sizes due to it being loaded directly into
    memory. Casing problem if your app has only 500K of memory and the file size is 700K, 500-700=-200K, so use only small file sizes with this method.
    There is also the URLConnection and HttpURLConnection classes to use that will do this better, but
    they dont have any real way of getting the file's data - that's still YOUR job.

  • In iMovie - can I add a still image over footage?

    In iMovie - can I add a still image over footage?

    Yes. Use the Cutaway feature.
    http://www.kenstone.net/fcp_homepage/imovie_09_stone.html#cutaway%20pip

  • MapViewer 11g over https problem - how to solve ?!?

    Hi,
    anyone able to access mapviewer 11 g deployed on standalone OC4J 10.1.3.4 over Https ?
    Namelly, the following link works:
    https://localhost/mapviewer/
    _but, going on the 'Demos' tab, and clicking on the 'maps and faces' link ( https://localhost/mapviewer/faces/fsmc/oraclemaps.jspx ) - produces the following javascript error:
    [Exception... "Access to restricted URI denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "https://localhost/mapviewer/fsmc/jslib/oraclemaps.js Line: 6497"]Anyone able to access mapviewer (deployed on any server) over https ?

    MapViewer works over HTTPS with some minor configuration changes. First, you may need to tell MapViewer to return generated map image URLS in the form of "https://...", which is done in the config file mapViewerConfig.xml through the <save_images_at> element.
    From the error message it does seem to indicate maybe the JavaScript API (oraclemaps.js) is being loaded from "http://" while the web page itself is accessed via "https://" and browser thinks they are two different domains. Maybe you can change how the JS library is loaded in your page and see if that fixes the issue?

  • And again - how do I superimpose an image over a moving image?

    So I am beginning to work this all out...
    I have cropped an image using motion which is looking great, except that the image (which is someone's head) is square because I used 'crop' in motion, any ideas how to make the edges curved?
    The next step is working out how to keep the superimposed image over the head of the person in the video if they move? ie so it tracks the original image in movement?
    Thank you all for your help so far, I never expected help like this so quickly!

    Hard to follow you when you're creating new threads on the same topic...
    First of all - don't use Motion to crop - that's easily done in FCP - if you want to follow the edges of the head, use the Mask tool in Motion.
    Second, there's a video tutorial for using the tracking tools in Motion here:
    http://motionsmarts.com/
    Patrick

  • Adding Ken Burns to Image over Video

    I've created a project where during certain points during the video there are images over the video so you don't have to stare at the speaker forever. The audio still plays and you see the image, but I do not have the option to apply a ken burns to the image because it is inserted more as a title rather than a still image.
    Does anyone know how I can apply a ken burns effect to images placed over video in the title track?

    Yes, this can be done. It may be easiest if you start over.
    First, drag the video clip with the speaker to your project by highlighting the clip with a "yellow rubber band" in the Event and dragging it to the project. Now, without changing the "Yellow Rubber Band", use Command-Shift-Drag to drag just the sound from the selected Event clip to the project. Drag it to the beginning of the original clip.
    Now you have a sound track pinned to the original clip, and you can set the volume of the video clip to zero using the audio settings. The Green audio clip will still play.
    Now you can select (for example) 4 second lengths of the video and right click (or command click) and select DELETE SELECTION. This will eliminate 4 seconds (for example) of the video. Replace it by dragging in a photo from the Photo Browser. Set the length of the photo to 4 seconds, and set the Ken Burns settings as you wish. You should now have a video with a ken burns style photo inserted playing over the original sound track.
    This article may also be helpful.
    http://imovie08.blogspot.com/2007/08/how-to-extract-audio-from-clip.html
    Message was edited by: AppleMan1958

  • Creating image over quicktimes...

    Hi,
    new to iweb, so bear with me please ...
    I have some quicktimes I want to put on my iweb page but the firt frame of the quicktime is black, kinda borning. Can or should I say HOW can i put an image over my quicktime so it looks a pleasing for the viewer to click on?
    Thanks for the help!

    swdocc1 wrote:
    "new to iweb"
    If you haven't already seen these iWeb video tutorials, they can be useful ~ this one shows the QT +Poster Frame+ slider being set up:
    http://www.apple.com/ilife/tutorials/#iweb-media-57

  • Passing an array over http?

    Hi,
    I want to pass two arrays over a http connection based on a users action i.e. clicking a button. I have ASP on my server (server side javascript). Can anyone give any help? Would I go about putting the array into a byte array as with other standard string and int variables?
    byte[] data = (("array1_="+(sRRowArray)+"&"+"array2_="+(sRSeatArray)).getBytes());I have tried this to no avail.
    Is there anything other than request.form that I have to use on the server side to get the arrays?
    Thanks in advance,
    Harry

    Any help would be much appreciated!! Would I have to pass the array in a similar way in which images are sent over http? If so, does anyone have any examples of doing this. I need help on this problem urgently.
    Thanks in advance,
    Harry.

  • Loading a video over HTTP

    I'm having problems loading a .3gp video over HTTP. I get the
    following error message "Error preparing video for playing".
    Everything else (xml data, images) loads nicely. I've tested
    this with Nokia 6630 and N70, but with no luck.
    If I transfer the files to my phone and load the video from
    the memory card, it works just fine. Is there something I can do to
    fix this?

    Ciao
    the defualt streaming protocol for Nokia is rtsp not http. So
    it will not work an http call to a video.
    Also using rtsp requires a streaming server, it's not enough
    to place the video file on the server.
    Other phone might use http for streaming.
    Alessandro

  • Trouble sending images over sms

    Anyone having trouble sending images over txt messages?

    I did it first. You may pay me $10 and get XM2 WebServer 1.2 from my company.
    Ok, I'll help ya out here...
    HTTP protocol in Internet Explorer is "juiced up" meaning that it does not require HTTP data to be correctly sent. To send an image to be deisplayed...
    <html>
    <img src="theImage.gif"></img>
    </html>
    Now, the server will see a GET request like this...
    GET /theImage.gif HTTP/1.1
    Accepts: Image/jpeg, Image/gif, ...
    Your web server (in the IE case just needs to send)...
    output.println(data);
    The data object is a string, that represents the contents of the image.
    To do that, just get the correct File object, connect reader to it, then loop it
    until the reader is no longer ready (reader.ready() != true), as it loops, just append
    the readLine() command to the end of the data string and it will be ok.
    Now this works on IE just fine, using vary small file sizes due to it being loaded directly into
    memory. Casing problem if your app has only 500K of memory and the file size is 700K, 500-700=-200K, so use only small file sizes with this method.
    There is also the URLConnection and HttpURLConnection classes to use that will do this better, but
    they dont have any real way of getting the file's data - that's still YOUR job.

Maybe you are looking for

  • How do I change the 'tempuser' folder name?

    Trying to set up an old (2006) Macbook for my daughter to replace her (even older) old one. I have an account with her name, but the documents and photos are stoored under a folder called "tempuser" which I think might confuse her. Can I rename that

  • Nokia E52 display caller's name and contact pictur...

    Can someone advise me on possible problem with my E52 - I am very pleased with most aspects of the phone but it is not showing the name of the caller or the contact picture when I receive a call (just the number). Surely it is standard for every Noki

  • Is it possible to print barcodes from LT31 (SAPScript) on a Zebra?

    Hi We have a factory that would like to print their picking lists/transfer orders using transaction LT31 to a Zebra ZM600 printer. The transaction appears to create a spool in the SAPScript format. We have tried pretty much all of the Zebra drivers (

  • Customizing code formatting

    1) I converted a tables layout to AP Elements and the code is awful. Meaning that everything is tight up against each other with no spaces and it's difficult to find anything.  I'd like to set the div's so that there is an extra space after the </div

  • How to disactivate the lost mode after found?

    I put my iphone 4s to the lost mode via icloud.com, and after an hour i found my iphone. i entered my password, it didn't unlocked. in stead the screen went black. please help how to disactivate the lost mode via icloud.com since i cant enter the pas