JNLP get external images ,ASAP

hello i have an application ,
my application is starting using JAVA WEB START inside a jetty server
i have some images outside of my jar file ,
and i like to load thous images to my application
how can i do that ?
what path should i write to get the images ?
thank you

hello i have an application ,
my application is starting using JAVA WEB START inside a jetty server
i have some images outside of my jar file ,
and i like to load thous images to my application
how can i do that ?
what path should i write to get the images ?
thank you

Similar Messages

  • Problems with animated masks and external images

    I have an instance of a movieClip on the stage and I load an external JPG into the movieClip.  The movieClip is masked by a layer that begins animating on a certain frame.  As soon as I reach that frame my externally loaded JPG disappears.  The movieClip doesn't mind being masked, but as soon as the mask animates the external image goes away.  The mask animation is shapes drawn frame by frame.
    It is interesting to note that if I create a Class and load the JPG into the movieClip (or do this in a constructor) I do not experience this problem - it is when the JPGs are loaded into an instance of the movieClip that lives on the stage that I encounter this. Unfortunately that is not an option in my project (since I have to get the path for the JPG from an xml file I am loading).
    Could someone please help me with this?

    that's a flash bug.

  • Including External Image in JSP

    Hi all,
    I need to be able to load a external image (image in a specific loaction on the server but not in the webapp location). Unfortunealty I cannot use servlets and have to code it in the JSP directly.
    So far I have this code :
    <%@ page import="java.io.*"%>
    <%@ page import="javax.imageio.stream.*"%>
    <%@ page import="br.gov.sc.tce.sco.view.framework.Constants"%>
    <%
         response.setContentType("image/gif");
         String  fileName = Constants.UPLOAD_FOTO_HOME + ( request.getParameter("fileName") == null ? "" : request.getParameter("fileName") );
         FileInputStream fis = null;
         OutputStream os = null;
         try {
              fis = new FileInputStream(fileName);
              os = response.getOutputStream();
              while ( fis.available() > 0  ) {
                   os.write(fis.read());
         } catch (Exception e) {
              e.printStackTrace();
         } finally {
              if (fis != null) {
                   try {fis.close();} catch (IOException e1) {} finally {fis = null;}
              if (os != null) {
                   try {os.flush();os.close();} catch (IOException e1) {} finally {os = null;}
    %>and in the pages that need to include pages I do something like the following :
    <img src="<%=appName%>/include/jsp/showImage.jsp?fileName=<%=((Foto)fotoCad).getNomeArquivo()%>" width="60" height="60">This all seems to work ok , the images display , except that I get a stacktrace error afterwards of java.lang.IllegalStateException: getOutputStream() has already been called for this response
    Any help would be appreciated
    Regards
    Robin

    If you want to get rid of the exception, you have to remove all carriage returns between your JSP tags
    Explanation:
    If you put a carriage return in your code, the generated servlet generates: out.println("\r\n") (depending on your os)
    In other words it has already got the output stream/writer in order to print out some characters to the stream. Hence the generated error message.
    The following should generate without any exception raised.
    See how carriage returns are eliminated?
    Note this also includes no carriage return at the END of the file after the closing %>
    <%@ page import="java.io.*"
    %><%@ page import="javax.imageio.stream.*"
    %><%@ page import="br.gov.sc.tce.sco.view.framework.Constants"
    %><%@ page contentType="image/gif" %><%
         String  fileName = Constants.UPLOAD_FOTO_HOME + ( request.getParameter("fileName") == null ? "" : request.getParameter("fileName") );
         FileInputStream fis = null;
         OutputStream os = null;
         try {
              fis = new FileInputStream(fileName);
              os = response.getOutputStream();
              while ( fis.available() > 0  ) {
                   os.write(fis.read());
         } catch (Exception e) {
              e.printStackTrace(System.out);
         } finally {
              if (fis != null) {
                   try {fis.close();} catch (IOException e1) {} finally {fis = null;}
              if (os != null) {
                   try {os.flush();os.close();} catch (IOException e1) {} finally {os = null;}
    %>

  • After loading Lion I cannot open some pictures. I get Unsupported Image Format. It tells me picture was taken with Canon EOS Rebel with unknown lens

    After loading Lion I cannot open open some pictures in Aperture. I get Unsupported Image Format, all files even the ones I can open are .JPG. Also it tells me picture was made using Canon EOS Rebel with unknown lens.

    You mention that 'most' of your files are DNG. Try
    running the effected files through Adobe DNG
    converter again and then import your reprocessed
    files to Aperture and see if the problem persists.
    I had a problem with a batch of D2x files converted
    to DNG which had been metadata tagged by
    PhotoMechanic (the evil app).
    B.T.W. You mention that you had been using Bridge.
    Are you getting any of the embedded XMP metadata
    coming into Aperture during the import process?
    Already tried that multiple times...no luck. I'm wondering though if it might be related to metadata as you suggest. I'm still trying different things to see what happens.
    I was able to alleviate the problem on one set of images by painstakingly searching my external drive for the oldest backups I could find - CR2 files from before DNG conversion. I then ran those through DNG Converter and tried importing them again (this time, I embedded NO thumbnail, but I'm not sure if that made the difference - I think it was more likely a fluke in the original conversion that caused the problem). This time, it worked.
    Now, the big problem is that I still have a couple hundred images for which I can't seem to locate the original CR2 files. I don't typically keep them after conversion, as I don't have the space for both.

  • No external images in Outlook 2013 & no internet access in Internet Explorer 11

    I use a an automatic configuration script http://XXXXukproxy.internal.XXXXXXXX.com/proxy.pac
    I also use a combination of 2 VPNs through Avaya VPN Client or Cisco AnyConnect Secure Mobility Client.
    When I'm connected to the VPN with the Avaya VPN Client I can't get ANY internet pages to load in Internet Explorer and I can't get ANY external images to load in Outlook 2013
    I can use the exact same proxy settings in Chrome and Firefox with no problems what so ever.
    If I remove the automatic configuration script I still get no internet access in Internet Explorer.
    When I'm connected to the VPN with the Cisco AnyConnect Secure Mobility Client it's fine. It's also fie when I'm not using any of the VPN's
    Anyone got any ideas? Can't be the proxy or the VPN as it's perfectly ok in Chrome and Firefox.
    Thanks in advance.

    Hi,
    First please run Outlook in Safe Mode:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    We may also try to change the Location of Temporary InternetExplorer Files in Internet Explorer to test the result (the steps below are for IE 10):
    Internet Explorer -> Internet options -> General
    tab -> Under Browsing history, click on Settings
    button -> Temporary Internet Files tab -> Under Current location, click on
    Move folder button -> Choose the new location, click
    OK.
    Regards.
    Melon Chen
    TechNet Community Support

  • Loading External Images

    Hey, I've been having a niggly problem for a while now. I'm
    using MovieClipLoader and a Listener to load in external images.
    All the images load in fine, but often (not always) the onLoadInit
    and onLoadComplete events don't seem to work on the last image I
    load, so if I've got a dynamic text box that I want to disappear
    when loading is complete, it doesn't, only on the last image of a
    group, even tho the image itself loads correctly.
    Anyone come across this before? You can see an example on the
    index page of
    this site.

    nice site, good job :) I would guess that if you are using
    both events on the same call, one is getting triggered before the
    other, since they both operate at a similar time. similar but not
    the same, onLoadComplete happens when the load is complete,
    onLoadInit happens when the first frame of the loaded timeline
    plays. Therefore if your listening for both on the same load call,
    one may happen before the other, and may override or change the
    event sequence, occationally.
    Just a guess though, I think you should consider using one or
    the other, and firing all other functions from there.

  • How to receive the original _width and _height of an external image

    Hello,
    When i load an external image (.jpg) how can i trace the
    original height and width of
    this image?
    I already made a MoveiClip loader, so i can fire a function
    when the image is loaded completely.
    But i don't know how to get this value of the original image
    size, because i placed this
    image in a container_mc.
    Does someone know how ?
    Regards,
    Micheal

    your 'container_mc' recieves the exteral image's original
    size, thus you can
    easily find out your image's size
    (unless the container's x & y scale aren't 100% - in that
    case u need to
    first set it back to 100% and then u can enquire the size).
    eRez
    "Michealnl" <[email protected]> wrote in
    message
    news:ev32nf$h0t$[email protected]..
    > Hello,
    > When i load an external image (.jpg) how can i trace the
    original height
    > and
    > width of
    > this image?
    >
    > I already made a MoveiClip loader, so i can fire a
    function when the image
    > is
    > loaded completely.
    > But i don't know how to get this value of the original
    image size, because
    > i
    > placed this
    > image in a container_mc.
    >
    > Does someone know how ?
    >
    > Regards,
    > Micheal
    >

  • (HELP) - Loading multiple external images error #1010

    I'm a newbie at Flash and spent the whole day trying to fix this one problem and can't seem to fix it no matter what I do.
    I'm using Action Script 3.0, CS5 on Windows 7.
    I'm trying to load two external images (thumbnail images) in the loader "see image below for reference", where the full image size will be. However, I am getting this error when testing my movie. What am I doing wrong?
    Test Movie error message:
    "port1_btn
    TypeError: Error #1010: A term is undefined and has no properties.
        at index_fla::MainTimeline/fl_MouseClickHandler_6()"
    "port2_btn
    TypeError: Error #1010: A term is undefined and has no properties.
        at index_fla::MainTimeline/fl_MouseClickHandler_7()"
    FYI:
    Loader instance name: mainLoader
    Thumbnail #1 instance name: port1_btn
    Thumbnail #2 instance name: port2_btn
    This is my code

    Go into your Flash Publish Settings and select the option to Permit Debugging.  Then the error messages could include an indication of which lines are causing the problem.
    And just for the sake of asking since the code is somewhat minimal... is the mainLoader inside a container named portfolioBkgd?

  • Loading bitmapdata from external image?

    Hi everyone,
    I'm trying to retrieve the bitmapdata from an external image. In order to test my code, I convert the bitmapdata data a bitmap and I add it to the stage. Unfortunately I get a TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Bitmap@6b147e1 to mx.core.IUIComponent.
    Do you see why this error occurs?
    My code:
    import flash.display.BitmapData;
    import flash.display.Bitmap;
    private var bitmapData:BitmapData;
    private function init():void
         var loader:Loader = new Loader();
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
         loader.load(new URLRequest("Beach.jpg"));
         var myImage:Bitmap = new Bitmap(bitmapData);
         addChild(myImage);    
    private function onComplete (event:Event):void
          bitmapData = Bitmap(LoaderInfo(event.target).content).bitmapData;
    Thanks in advance

    Now I want to convert the bitmapdata to a bitmap and display it. I get this error:
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::BitmapData@727c629 to flash.display.Bitmap.
    Can you explain how to convert bitmapdata to bitmap and display it properly?
    My code:
    private var bitmapData:BitmapData;
    private var myImage:Bitmap;
    private function init():void
         var loader:Loader = new Loader();
         loader.load(new URLRequest("Strand.jpg"));     
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    private function onComplete (event:Event):void
         myImage = Bitmap(LoaderInfo(event.target).content);
         bitmapData = new BitmapData(320,240);
         bitmapData = myImage.bitmapData;
         //adding the image to a container (  sprite  )
         var container:Sprite = new Sprite();
         container.addChild( Bitmap(bitmapData) );
         // adding the container to a stage
         this.rawChildren.addChild(container);   

  • Load external images

    Im wanting to make a photo gallery that I can update easy, I
    thought if I could have a movieclip load external images for my
    thumbnails it would be nice but Im not sure how to set it up. I
    would make a file for my images and then another for my thumbnails,
    then if or when I want to switch out pictures I'd just have to drop
    new images into my folders and not even touch the FLA. Could anyone
    point me in the right direction with the right action script to use
    or a tutorial that explains how this is done..
    And when I say load external I want it so I dont have to
    click on the image for it to load, I want it to just load
    automatically , I would put an invisible button or something to
    that efect over the images for a animated effect.
    Thanks for your help.

    I don't know if you are super enthusiastic about building it,
    or if you just want the utility. If the later is the case, I just
    purchased (cheap) a really great product that does all of what you
    want, fairly automatically, including scaling large pictures down
    to smaller size so that they load quickly.
    I am not sure of the policy of recommending third-party
    applicatons here. So, if you are interested, send an email (private
    message) to me and I will show you the simple site I put together
    using it and where to get it.

  • Saving JPEG from External Image Editor (CS2)?

    When I purchased Aperture I'd hoped it would store three copies of each photo; the original untouched RAW and a Photoshopped TIFF and JPEG, but 70mb+ TIFF files appear to be taking their toll. I will probably store them in another app, leaving the RAW and JPEG in Aperture.
    Anyway, to cut to the question.
    I send a 16 bit TIFF to CS2 directly from Aperture using the 'External Image Editor' option. When I've done all of the necessary work in CS2, save the 16bit TIFF, and then convert to 8 bit and 'Save As' to JPEG.
    Aperture appears to be able to automatically retrieve a TIFF file, but not a JPEG.
    Does anybody have any ideas of a way round this?
    Currently, I'm saving JPEG's to my desktop, then re-importing into Aperture. I hoping it doesn't need to be quite so long winded!

    Fast is a relative term. However, I will say this: I shoot primarily RAWs, and my largest megapixel count is the 11 megapixels of my Canon 1Ds. On my PowerBook I felt Aperture was fast enough for image sorting and metadata editing, but was a bit jerky and slow for image adjustments. Also, the PowerBook video card was not up to the task of switching views because it would regularly get scrambled and then settle down when switching views. I bought a MacBook Pro C2D w/2GB RAM and I'm very happy with the performance of Aperture on this machine. Adjustments are smooth. Even loading the Masters from 7200 RPM external drive seems much snappier on the MBP.
    I haven't had much time with Aperture on my G5 Dual 2GHz w/3.5GB RAM because I severely fractured my ankle shortly after I bought Aperture and only one hour after I arrived home with my new Raedon X800XT graphics card. (My G5 is up a flight of stairs in my studio and I have to sit with my leg elevated 24/7.) I've read in this forum that this combination is workable, but perhaps I'll find myself wishing for a MacPro. Given how happy I am with the MBP, I can't imagine being unhappy with a MacPro.
    I keep Activity Monitor running on my machine and have set it to load on boot. I set the icon to show the memory usage pie chart. I keep an eye on it as I run my programs. I only keep essential programs open when I am working in Aperture.
    I have found that smaller projects are quicker. Like you, I originally had multiple thousands of images in projects. Then I changed my structure to have many projects under blue folders. My projects are all under 1,000 images now.
    BTW, have you seen this post?
    http://discussions.apple.com/message.jspa?messageID=3663650#3663650
    -Karen

  • External image gallery problem

    Hi,
    I'm getting a strange problem with my gallery which uses
    external images. The first time you open the page with the gallery
    on, all of the pictures are full size and overlap each other but
    then when you press refresh all the images shrink down to there
    inteded size and the gallery works perfectly. This seems very
    strange that it fixs itself. Anyone got any ideas?
    heres a link to some screen shots of the gallery breaking:
    http://www.atumstudios.com/test/error/
    Here is a link to the actual gallery page:
    Shriba Artware Gallery
    page

    Have a look at this..
    /t5/Nseries-and-S60-Smartphones/Password-protect-a-folder-on-application-screen/td-p/645383
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Crop an external image

    Hi guys.
    I'm new to flex. I just want to load an external image, crop it and display it on the canvas. do any of you have any idea, how can i do that?
    I know I have to deal with BitmapData class but I am not able to get the bitmap data out of the external image.
    Please help me
    Regards,
    Asad

    First you have to load the image using a Loader/URLoader
    When that is complete,  you have to load the bytes
    When that is complete you get bitmapData
    Then you can copy/crop the bitmapData however you please.
    First thing is , you have to learn how to load an external image , then proceed from there.

  • Suddenly getting "unsupported image fomat" on RAW files that have been working perfectly.  How do I fix it and can I get those images back?

    I am suddenly getting "unsupported image file" for RAW images that have been working just fine.  How do I fix this and how do I get those images back?  Version 3.4.5, Canon 7D, everything up to date and no updates since files were loaded into Aperture.

    Would it help to buy a separate external hard drive for Aperture?
    That would be by far the best solution. And it would make the backup easier. You could include the "Aperture" drive in your Time Machine backup. With the original files stored on your Time Machine volume there is no way that Time Machine could back them up.
    Use Disk Utility to format the new drive "MacOS X Extended (Journaled)".
    Set the "Ignore Ownership on this Volume" flag. (select the drive in the Finder, use "File > Get Info ⌘I)
    In the "Get Info" panel your drive should look like this:

  • Problem with Adobe BRIDGE getting Photoshop/Image Processor menu

    When I open my drop-down or fly-out menu under TOOLS in Bridge (CS3 version), the entire portion of the menu which is supposed to appear next underneath the Cache line option is missing (i.e., Photoshop, Illustrator, InDesign, Start Meeting..., Photoshop services).
    What gives?
    I'm trying to get to Image Processor under the Photoshop menu option (which is supposed to appear in the Tools drop-down menu).
    Please tell me what's wrong. Thanks in advance.

    Thanks, but there IS no Photoshop subheading in my Tools menu.
    That exactly describes the problem I'm having!

Maybe you are looking for

  • Database Table Resource - What does it actually do?

    Hi, I want to know what it actually means to grant a database table as a resource to a user in IDM. For E.g.: When I provision a NT resource to a user using IDM, it means that a Windows NT account is created for that user. However, when I assign a Da

  • Host Header Flash Forms Problems

    Hello, I'm running CFMX 7.01 on IIS 6, Windows 2003 Server.... I've created an intranet application that uses several flash forms. The site is located in the folder of C:\Inetpub\wwwroot\CorpComWeb. This can be referenced from the Default website by

  • Error message NIPathDir property while installation

    Hi, we are facing an error while installation of Lab VIEW 8.2.1 on windows vista. Each time an Fatal Error message appears ; "fatal error   NIPathDir property....is undefined" Please tell me the solution for this error. Thanks Altaf

  • Save as Using Passthrough?

    When using "Save as" with the self-contained movie option, does QuickTime simply passthrough the audio and video tracks to a mov container or is it re-encoding the tracks while moving them to the mov container? I have an mkv video with an h.264 video

  • FPS drop when using movie clips.

    Hello, first of all excuse my English it's not my main language. I'm working with a portfolio in Flash CS4 (actionscript 2.0 if that would matter). The portfolio has buttons, each button is connected to a movie clip, so when you press the button a mo