Image loading via URL with resources in packages

And another newbie-question:
When I want to access local media-files (for example images) in a subdirectory, I can use a url to get a local path/filename. For example:
url = getClass().getResource("/path/image-name.gif");
image = getToolkit().getImage(url);
Now I have packaged my classes including the subdirs containing the images in a jar file.
package.jar
|
-- subdir (with images)
|
-- a.class
|
-- b.class
|
-- x.class
Now the access via url doesn't seem to work any longer. When I subclass "a" outside the package (with correct import-statements, of course) and the constructor of "a" tries to access the images in "subdir" (invoking super()), it cannot find it and an exception occurs.
Is this correct, or does the error lie maybe somewhere else?
I had the impression that a jar-archive can be accessed like a directory? Have I to access the images in another way to get them working inside a package? When the classes and images are not packaged, all works fine.
I work with Sun One, btw., and do mount the jar-archive as a filesystem...
Any advise?
Thanks in advance.
Xanathon

Am I on the right way when using an URLClassLoader instead of getClass()?

Similar Messages

  • Hypertext link from image loaded via xml

    I thought this would be easy but for some reason it's not
    working.
    What I want to accomplish:
    Make an image loaded into my textArea via XML a link. I
    thought I could do something like this:
    <a href='
    http://www.mysite.com"><img
    src="myImage.jpg"/></a>
    Simple enough you'd think but the image appears but with no
    hypertext link capabilities. :(
    Any thoughts? Wisdom?
    Thanks.

    Hi Marghoob,
    Thanks for your reply. Turns out it is a bug with the Flash 7
    player. The code works fine in the Flash 8 and 9 player. I guess
    this was a reminder that I should look for the simple things first.
    Novian

  • Images loading from url

    Hi All !
    I am trying to load images onto a canvas using url source.
    The images loaded are forming a map , so its important that
    every image will be
    exactly in the wright place.
    The problem is that sometimes an image is not loaded , and I
    get error 504 "Gateway RequestTimeout" ,
    what i want to do is shorten the time of the error so if an
    image isnt loaded after 5 seconds i will get the error
    and reload it. How do i change the timeout of the loading ?
    or maybe i should use another method to load the images to
    the canvas ?
    10x alot !
    mr. flex ;)

    hi,
    looks like PaintComponent() instead of paint did the job.
    thanks a million..
    for those interested in loading images, I find ImageIcon very limited and at the end I found a better solution :
    public class ImageComponent extends JComponent implements ImageObserver{
        private Image image;
        public void loadImage(URL imageURL){           
                image = Toolkit.getDefaultToolkit().getImage(imageURL);
                prepareImage(image,getWidth(),getHeight(), this);
        public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height){
            System.out.print("."); // loading progress...
        public void paintComponent(Graphics g){
            if(image!=null){
                 g.drawImage(image,0,0,null);
    }it is far nicer as it displays dots while loading... up to you to attach progress bars or favorit loading guizmo...
    DrLeinster.

  • Call WoC View via URL with parameters

    Hi,
    I'm already able to call a particular WoC view via URL by passing the app.component and app.inport parameters.
    Is there also any way to pass specific filter values, e.g. a customer id?
    Thank You!

    Hi Dennis,
    yes, you can pass the parameter of the Inport as well.
    An example is the Sales order QAF for 'New Sales Order' which has an inport ContactIDWriteBackIn. This inport allows passing an parameter called ID which is then mapped to the Contact ID of the UI.
    The corresponding call is:
    https://....?app.component=/SAP_BYD_APPLICATION_UI/crm/soc/salesorderqafeco.QA.uicomponent&rootWindow=X&redirectUrl=%2fsap%2fbyd%2fruntime&&sap-client=004&sap-language=EN&app.inport=ContactIDWriteBackIn&param.ID=1000450
    I hope this helps,
    Thomas

  • Ensure image loaded via http connection

    hi all
    I have a midlet that will load various images and displaying them on a canvas, upon request from the sever via HTTP connection.
    And since the operation are being performed via the commands, the http connection code had been placed in another thread.
    My question is, how can I ensure that all the necessary images are being loaded before moving on to execute the next code segment in my midlet?

    When i try to send the server its unable to recieve image data . it was able to recieve request data.
    As we use the same procedure to send data(irrespective of form as i m sending bytes)
    Here is the code snippet
    private boolean OpenHTTPConnection(String xmlData, String strUrl, String strRequestType) {
            System.out.println("UUURRRRLLL ->" + strUrl);
            System.out.println("XML Data---> ->" + xmlData + "'''''''" + bHTTPStatus);
            int rc, height, width;
            byte[] data;
            byte[] imageData = null;
            InputStream iStrm = null;
            try {
                if (xmlData != null) {
                    con = (HttpConnection) Connector.open(strUrl, Connector.READ_WRITE, false);
                    con.setRequestMethod(HttpConnection.POST);
                    data = xmlData.getBytes();
                    System.out.println("1->" + data);
                    OutputStream ops = con.openOutputStream();
                    System.out.println("----data length---" + data.length);
                  ops.write(data);
       if (Snapper.isUpload == true) {
    ops.write(Snapper.raw,0,Snapper.raw.length);
                    rc = con.getResponseCode();
                    if (rc != HttpConnection.HTTP_OK) {
                        result.setText("Server is not ready...");
                    if (ops != null) {
                        ops.close();
                    xmlData = null;
                    imageData = null;
                    Snapper.isUpload = false;
                }// end of null check
                else {
                    System.out.println("Open the Con using this URL--->" + strUrl);
                    // open the specific photo for View module
                    con = (HttpConnection) Connector.open(strUrl);
                    con.setRequestMethod(HttpConnection.GET);
                strParameters = null;
            } catch (Exception e) {
                System.out.println("Exception------->" + e);
                e.printStackTrace();
                midlet.uiManeger.SetLastErrorCode(Parser.NO_NETWORK);
            return true;
        }

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • Why won't images load in Bing with Firefox 22.0?

    Ever since upgrading to Firefox 22.0 images on Bing will not load. Images on Google work fine. Images on Bing work fine in IE. I have tried all the solutions I've come across re: images not loading and it does not fix the problem with FF22.0 and Bing.

    When I started in "Safe Mode" Bing images appear.
    So next I:
    Turned off hardware acceleration. No change.
    Was already running default theme.
    Disabled all Plugins - No change
    Disabled all Extensions - CHANGE!!
    Now imagines are showing in Bing.
    You are brilliant!! It turned out to be '''HTTPS-Everywhere 3.2.3''' not allowing Bing to show images. Wow! Thank you so much.
    I have no idea if you can help with this, but is it possible for you to tell me if I need all these Plugins? I don't even know what some of them are or how they got there:
    3.0.72.0 (is there 2 times)
    Google Update 1.3.21.149
    RealDownloader Plugin 1.3.2.28
    RealNetworks RealDownloader Chrome Background Exte 1.3.2.28
    RealNetworks RealDownloader HTML5VideoShimPlugin 1.3.2.28
    RealPlayer Download Plugin 16.0.2.32
    RealPlayer G2LiveConnect-Enabled Plug-In 16.0.2.32
    Shockwave Flash 11.7.700.224
    Windows Live Photo Gallery 15.4.3555.308
    At the moment they are all disabled. Will I get notification that such and such Plugin is needed to view this?
    You guys rock. I never expected such prompt and helpful info. Thanks a million!!!

  • Need to create or load a url with variables in CCX

                  Im trying to find a way to used the building browser for CAD.  the url will goto a customer DB web portal.  but the url needs to be loaded with the ani and other variables.  example.  will some type of scripting steps allow me to create a http url and then populate it in the cad browser.  Or at least gives me a link some where in the layout to click on to get the the created/ loaded url
    http://411webhost.com/customer/connect.php?cust_phone=678-900-3000. 

    I have done something similar to this in the Desktop Admin interface. Assuming you populate the variable in the script (meaning you will have to define a custom one or use one of the CustomCallVariables), you can have an HTTP action on either ringing or answered that will display the URL in the CAD browser.

  • Problems with *.zmg Image deploy via PXE

    Hi all,
    I am currently faced with the following problem unfortunately:
    We use ZCM pre boot (pxe) to image our clients with a windows7.zmg image which was configured with sysprep.
    The image is created on a PC, which has a 300GB HDD. The windows partition is over the total size of the hdd.
    This imaging process on a new pc is as following script shows:
    Code:
    # Delete + MBR partition table
    dd if = /dev/zero of=/dev/sda bs=512 count=1
    # partition
    fdisk /dev/sda << EOF
    w
    EOF
    # imaging
    img rp server IP path/to/image.zmg
    This works quite well so far, with the only problem, that the partition on the new PC has the maximum of 300 GB. So if I image this image on a pc, which hdd has 500 GB, 200 GB will remain unpartitioned.
    I have redesigned the imaging now follows:
    Code:
    # imaging
    img pc1 NTFS
    img rp server IP path/to/image.zmg a1: p1
    img pa1
    Now the entire HDD is used for the partition, but after the imaging the PC doesn`t boot, and stops with a black screen and a blinking cursor.
    I am typing this on a problem with the mbr, but does not know how to fix it: (
    I have to modify the imaging-process, that i can use the image on every HDD size with the result, that always the max partitionsize is used.

    hi all, i am having an issue where found out that Imaging Script cannot be used to multicast so i am running in to a problem now. If i push out an image via zcm script bundle it works fine with your suggestions but i cannot seem to figure out why the image wipes out all the hard drives in the systems during multicast image set or a single image load via pxe boot.
    First problem:
    if i push out an image via Zenworks Image preboot bundle file set is set to 1 it wipes out all the hardrvie in the system (tow hard drive, disk 0 and disk 1. i can certainly fix the disk resizing issue by adding a script to unattaned file after the image is loaded to resize the disk automatically using diskpart commands. which works fine.
    Second problem:
    here is what i did:
    1. created an multicast Image Set
    2. number of clients needed set to 1
    3. Time out in five minutes
    It does not load the image znd waits for session to start.
    how can i automate this via zcm to make sure on pxe boot the both pcs receive the image as scheduled in zcm.
    Please assist.
    thank you.

  • My mail won't load via iCloud on my desktop.  It comes up with the message "Missing resources".  How do I correct this?

    My mail won't load via iCloudonmy desktop.  It comes up with the message "Missing resources".  My network is working properly and I've checked Apple's reporting system to see if any systems are down (they are not). I am asked to submit the report to Apple (which I have)...but how do I correct this error sothat I can access my mail via iCloud on my desktop iMac?

    Here is the error message information:  DOES THIS HELP ANYONE FIGURE OUT WHAT IS HAPPENING?  All other iCloud Services work.
    IS FATAL
    true
    APPLICATION NAME
    mail
    TITLE
    Mail could not be loaded
    MESSAGE
    There was a problem loading the application due to a possible network error or missing resources. Please try again.
    LOG
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: MAIL in main()
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: Creating local CK.User object
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: Creating local CK.AccountPreferences object
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: -->  Request 1:   POST to https://p04-mailws.icloud.com:443/wm/preference?clientBuildNumber=15B.9bb3ce9&cl ientId=548F3122-7920-4BB0-8988-1F5BFD99D289&dsid=1018646875,  headers: Content-Type=text/plain,  body: (omitted)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: ----------------> Request out: /wm/preference-list-->1426606530328/1
      wmsid: null
      params: {"locale":"en-us","timeZone":"US/Eastern"}
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: SC.Object:sc1473:dispatch('load content')
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: "2.0 Waiting for Content" handled event 'load content' (no transition)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: SC.Object:sc2647:dispatch('noContent')
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG:   "6.2 pop up View" handled event 'noContent' with a transition to "6.2.2 No Content"
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG:     -> entering "6.2.2 No Content"
    Tue, 17 Mar 2015 15:35:30 GMT:  WARN:  REJECTING SERVER RESPONSE CoreMail.MailRequest.willReceive:
      Status:0
      Request:/wm/preference
      Wmsid:null
      Redirect Count:1
      Timeout Redirect Count:1
      ResponseText:
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: -->  Request 2:   POST to https://p04-mailws.icloud.com:443/wm/preference?clientBuildNumber=15B.9bb3ce9&cl ientId=548F3122-7920-4BB0-8988-1F5BFD99D289&dsid=1018646875,  headers: Content-Type=text/plain,  body: (omitted)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: ----------------> Request out: /wm/preference-list-->1426606530328/1
      wmsid: null
      params: {"locale":"en-us","timeZone":"US/Eastern"}
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: GIVING UP ON RETRIES, CoreMail.MailRequest.willReceive:
    responseText: ,
    this._redirectCount: 1
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: <--  Response 2:  0  (84ms),  headers:   body: (empty)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: <---------------- Request in: /wm/preference-list-->1426606530328/1,httpStatus: 0,round trip time: 85ms, wmsid: null
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: retrieveResponseError:
      ServerPreferencesDataSource.retrieveResponse
      error:-1/0
      guid:serverPrefsGuid
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: Bootstrap error: Preferences.RefreshError
    TYPE
    server
    APP STATECHART
    SC.Statechart:sc1031
      initialized: true
      name: cloudos-statechart
      current-states: [
        active.application.displayingCurrentApp
      state-transition:
        active: false
        suspended: false
      handling-event: false
    BUILD NUMBER
    15B.169e9f7
    TIME
    Tue Mar 17 2015 11:35:32 GMT-0400 (EDT)        (1426606532298)
    HOST
    www.icloud.com
    USER AGENT
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    DSID
    1018646875
    ENVIRONMENT
    PROD
    RECENT LOG MESSAGES
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: MAIL in main()
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: Creating local CK.User object
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: Creating local CK.AccountPreferences object
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: -->  Request 1:   POST to https://p04-mailws.icloud.com:443/wm/preference?clientBuildNumber=15B.9bb3ce9&cl ientId=548F3122-7920-4BB0-8988-1F5BFD99D289&dsid=1018646875,  headers: Content-Type=text/plain,  body: (omitted)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: ----------------> Request out: /wm/preference-list-->1426606530328/1
      wmsid: null
      params: {"locale":"en-us","timeZone":"US/Eastern"}
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: SC.Object:sc1473:dispatch('load content')
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: "2.0 Waiting for Content" handled event 'load content' (no transition)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: SC.Object:sc2647:dispatch('noContent')
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG:   "6.2 pop up View" handled event 'noContent' with a transition to "6.2.2 No Content"
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG:     -> entering "6.2.2 No Content"
    Tue, 17 Mar 2015 15:35:30 GMT:  WARN:  REJECTING SERVER RESPONSE CoreMail.MailRequest.willReceive:
      Status:0
      Request:/wm/preference
      Wmsid:null
      Redirect Count:1
      Timeout Redirect Count:1
      ResponseText:
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: -->  Request 2:   POST to https://p04-mailws.icloud.com:443/wm/preference?clientBuildNumber=15B.9bb3ce9&cl ientId=548F3122-7920-4BB0-8988-1F5BFD99D289&dsid=1018646875,  headers: Content-Type=text/plain,  body: (omitted)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: ----------------> Request out: /wm/preference-list-->1426606530328/1
      wmsid: null
      params: {"locale":"en-us","timeZone":"US/Eastern"}
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: GIVING UP ON RETRIES, CoreMail.MailRequest.willReceive:
    responseText: ,
    this._redirectCount: 1
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: <--  Response 2:  0  (84ms),  headers:   body: (empty)
    Tue, 17 Mar 2015 15:35:30 GMT:  DEBUG: <---------------- Request in: /wm/preference-list-->1426606530328/1,httpStatus: 0,round trip time: 85ms, wmsid: null
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: retrieveResponseError:
      ServerPreferencesDataSource.retrieveResponse
      error:-1/0
      guid:serverPrefsGuid
    Tue, 17 Mar 2015 15:35:30 GMT:  ERROR: Bootstrap error: Preferences.RefreshError

  • Reading image url from a different package.

    When I'm trying to read image from a jar with a package structure different from the reading class, the getResource(<image name>) returns the url as null.
    For ex: Say I have hello.gif in a jar under
    client/resources and also the ResourceHandler in a different package
    say client/utils it does not work.
    Code for ResourceHandler is as follows:
    public class ResourceHandler
    public ImageIcon getImage(String imageName)
    URL url = this.getClass().getResource(imageName);
    System.out.println("-- url retrieved "+url);
    return new ImageIcon(url);
    The url printed is null. But if I have the ResourceHandler in the package client/resources it works. I believe that the class loader tries to load it from the path relative to this class. Any idea why this behaviour. I would also like to know why just being in the classpath is not sufficient.
    --Jos Francis                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    It needs it because the location of resources (like an image) is independent of that of the java code (resources are not .class files).
    To look for resources strictly from the syst classpath, you can use the methods getSystemResource() and getSystemResources() . These methods use the system ClassLoader to locate resources.

  • FireFox images not loading in local folders (firebug error-Failed to load given URL)

    I am having difficulty when developing websites in local folders (Windows7 computer). The webpages I make are showing images in IE9 & Chrome but not FireFox (nor Safari nor Opera).
    In FireFox I get Firebug "Failed to load given URL" prompt.
    I am using html5 & external linked css stylesheet & the html/html5 & css code validates.
    I have tried using rel path ie images/image.gif & absolute path references ie C:/RPD_Programming/RPD WEB/amwcsnew/index.html
    and have tried using % to eliminate whitespace in references but I cannot get FireFox to display images!!
    This has been a problem for me for around 2 weeks now & is very frustrating. Some website code/templates I have downloaded from the internet display the websites properly (ie load images fine) when I open them locally in FireFox. Why does my code not allow the images to load in FireFox (paths/permissions/other issue??). How can I fix this?
    Here is example css & html5 not displaying images from local directory in FireFox (fine in IE9 & Chrome):
    style.css
    /* CSS Document */
    /*Basic Reset*/
    margin:0;
    padding:0;
    html{
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
    display: block;
    body{
    width:1200px;
    margin:0 auto;
    header{
    height:450px;
    background:url("C:/RPD_Programming/RPD WEB/amwcsnew/images/header.gif");
    background-repeat:no-repeat;
    #mid{height:750px;
    background:url('C:/RPD_Programming/RPD_WEB/amwcsnew/images/mid.gif')no-repeat;
    footer{height:286px;
    background:url('C:/RPD_Programming/RPD WEB/amwcsnew/images/footer.gif')no-repeat;
    index.html
    <!doctype html><!-- simplified doctype works for all previous versions of HTML as well -->
    <!--html5 template from www.impressivewebs.com_modified by RPD-->
    <!-- Paul Irish's technique for targeting IE, modified to only target IE6, applied to the html element instead of body -->
    <!--[if lt IE 7 ]><html lang="en" class="no-js ie6"><![endif]-->
    <!--[if (gt IE 6)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
    <head>
    <!-- simplified character encoding -->
    <meta charset="utf-8">
    <title>amwcs-new</title>
    <meta name="description" content="amwcs">
    <meta name="author" content="rpd">
    <!-- Delete these two icon references once you've placed them in the root directory with these file names -->
    <!-- favicon 16x16 -->
    <link rel="shortcut icon" href="/favicon.ico">
    <!-- apple touch icon 57x57 -->
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    <!-- Main style sheet. Change version number in query string to force styles refresh -->
    <!-- Link element no longer needs type attribute -->
    <!-- <link rel="stylesheet" type="text/css" media="all" href="css/style.css" />-->
    <link rel="stylesheet" href="css/style.css?v=2">
    <!-- Modernizr for feature detection of CSS3 and HTML5; must be placed in the "head" -->
    <!-- Script tag no longer needs type attribute -->
    <script src="js/modernizr-1.6.min.js"></script>
    <!-- Remove the script reference below if you're using Modernizr -->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <!-- If possible, use the body as the container -->
    <!-- The "home" class is an example of a dynamic class created on the server for page-specific targeting
    <body class="home">-->
    <body>
    <!-- ******************************************************************** -->
    <!-- The content below is for demonstration of some common HTML5 elements -->
    <!-- More than likely you'll rip out everything except header/section/footer and start fresh -->
    <!-- First header has an ID so you can give it individual styles, and target stuff inside it
    <header id="hd1"> No way Hosay-not by default! Default is <header> tag (RPD edit) -->
    <header>
    <!-- "hgroup" is used to make two headings into one, to prevent a new document node from forming -->
    <hgroup>
    <h1>amwcs</h1>
    <h2>tagline</h2>
    </hgroup>
    <!-- Main nav, styled by targeting "#hd1 nav"; you can have more than one nav element per page -->
    <nav>
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </nav>
    </header><!--End header & or #hd1 header div id if used-->
    <!-- This is the main "div" that wraps the content generically; don't use "section" for this -->
    <div id="mid">
    <!-- The first of two "section" elements for demo purposes; optional class added for styling (hs1 = "home section 1") -->
    <section class="hs1">
    <!-- Each section should begin with a new h1 (not h2), and optionally a header -->
    <!-- You can have more than one header/footer pair on a page
    <header>
    <h1>This is a Page Sub Title</h1>
    </header> -->
    <p>Some content...</p>
    <!-- The h2 below is a sub heading relative to the h1 in this section, not for the whole document -->
    <h2>Demonstrating EM and STRONG</h2>
    <!-- "strong" is used for SEO and contextual hierarchy -->
    <p><strong>This text will have more importance (SEO-wise and contextually)</strong></p>
    <!-- "b" is used for stylistic offset of text that's NOT important contextually -->
    <p><b>This text has visual importance but has no contextual or SEO importance</b></p>
    <!-- "em" is used for colloquial-style emphasis -->
    <p>This is a <em>very</em> colloquial expression.</p>
    <!-- There can be multiple footers on each page -->
    <!-- Secondary headers and footers don't necesarily need ids; they can be targeted via context (i.e. ".hs1 footer")
    <footer>
    <!-- incite a riot: http://24ways.org/2009/incite-a-riot
    <p>Author: <cite>Louis Lazaris</cite></p>
    </footer> -->
    </section><!-- .hs1 -->
    <!-- This is another section; doesn't have header/footer because it's not required -->
    <section class="hs2">
    <h1>This is another section</h1>
    <p>This is some dummy content</p>
    </section><!-- .hs2 -->
    </div><!-- #mid -->
    <!-- The "aside" element could be a sidebar (outside an article or section) -->
    <!-- Or it could reference other tangentially-related content within an article or section
    <aside id="sidebar">
    <p>Sidebar content</p>
    </aside>-->
    <!-- The main footer has an ID for targeting, similar to the main header -->
    <footer >
    <p>copyright &copy; year</p>
    </footer>
    <!-- Remote jQuery with local fallback; taken from HTML5 Boilerplate http://html5boilerplate.com -->
    <!-- jQuery version might not be the latest; check jquery.com -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script>!window.jQuery && document.write(unescape('%3Cscript src="js/jquery-1.4.4.min.js"%3E%3C/script%3E'))</script>
    <!-- Below is your script file, which has a basic JavaScript design pattern that you can optionally use -->
    <!-- Keep this and plugin scripts at the bottom for faster page load; combining and minifying scripts is recommended -->
    <script src="js/general.js"></script>
    <!-- asynchronous analytics code by Mathias Bynens; change UA-XXXXX-X to your own code; http://mathiasbynens.be/notes/async-analytics-snippet -->
    <!-- this can also be placed in the <head> if you want page views to be tracked quicker -->
    <script>
    var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
    (function(d, t) {
    var g = d.createElement(t),
    s = d.getElementsByTagName(t)[0];
    g.async = true;
    g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g, s);
    })(document, 'script');
    </script>
    </body>
    </html>
    I am most grateful for help & look forward to replies & fixing this-thanks
    NB
    Is there a FireFox guide/manual in pdf format available anywhere? I have not found one yet & a FireFox reference might be useful!

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Problem using image via URL

    Hi everybody
    I have a problem with loading images via URL into my PDFs.
    I am using LCD ES2 Version 9.0.1....
    I want to create a PDF which loads images from the internet but it does not work.
    So far I have tried to add an image or image field to my PDF in the LCD and populate that image using the Object-->Field-->URL: palett. I put the URL in there like this http://www.adobe.com/imageshome/pdfgift_home.gif , tick the "embed image Data" checkbox (also tried with without that just to be sure) and save as Dynamic PDF (I also tried static) but when I open the PDF in adobe reader 9 or 10 or acrobat  9 there is no image showing. I also put the image in a subform and made that subform flowed, as well as the page itself and made the binding global.
    I have the form properties - default set to "Acrobat and Adobe Reader version 9.0 or higher", Default Language to JavaScript, PDF Render format to Dynamic PDF.
    I also tried using JavaScript events like "form:ready ImageField2.value.#image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif" as discribed here http://partners.adobe.com/public/developer/en/tips/lc_dynamic_images.pdf but that also does not work.
    What am I missing?
    Any help would be great and greatly appreciated!!!
    Thanks and best regards
    Norbert

    As far as I can tell, this use case is not allowed because of cross site references related security concerns. The form can refer to the images stored on the same server from where the PDF is served, but the images cannot come from external servers.

  • How to load a image after getting it with a file chooser?

    I'm still starting with JavaFX, and I simply would like to know how to load the image (e.g. png or jpg) that I selected using a FileChooser in the user interface. I can access the file normally within the code, but I'm still lost about how to load it appropriately. Every time I select a new image using the FileChooser, I should discard the previous one and consider the new one. My code is shown below:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var chooser: JFileChooser = new JFileChooser();
    var image;
    Stage {
        title: "Image"
        scene: Scene {
            width: 950
            height: 500
            content: [
                HBox {
                    layoutX: 670
                    layoutY: 18
                    spacing: 10
                    content: [
                        Button {
                            text: "Open"
                            action: function() {
                                if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null)) {
                                    var imageFile = chooser.getSelectedFile();
                                    println("{imageFile.getCanonicalFile()}");
                                    image = Image{
                                        width: 640
                                        url:imageFile.getAbsolutePath()
                // Image area
                Rectangle {
                    x: 10
                    y: 10
                    width: 640
                    height: 480
                    fill: Color.WHITE
                ImageView {
                    x: 10
                    y: 10
                    image: bind image
    }Thank you in advance for any suggestion to make it work. :)

    As its name implies, the url param expect... an URL, not a file path!
    So, use {color:#8000FF}url: imageFile.toURI().toURL(){color} instead.

  • Issue with Image Loader in 14.0

    Hi All,
    In our application, we have a custom function module in ECC, which is passing the URL of an image uploaded on the content management server(KPRO). Custom FM calls 'SDOK_PHIO_GET_URL_FOR_GET' to get the URL of the image.
    When we execute the FM in ECC, we get the URL as:
    http://gbswidkprodb01.global.rexam.net:81/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=YA&docId=001F296E9EB61ED3B6F490000438C20C&compId=TJ12A.jpg&accessMode=r&authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expirat
    when I use this URL in the browser the image gets loaded in browser.
    When I capture the output of JCO call in write file URL returned from FM is:
    http://<server>:81/ContentServer/ContentServer.dll?get&amp;pVersion=0046&amp;contRep=YA&amp;docId=001F296E9EB61ED3B6F490000438C20C&amp;compId=TJ12A.jpg&amp;accessMode=r&amp;authId=CN%3DBC3,OU%3DI0520020335,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&amp;expiration=20140617181313&amp;secKey=MIIBUgYJKoZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UEBhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0kwNTIwMDIwMzM1MQwwCgYDVQQDEwNCQzMCByASCCcTUiEwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE0MDYxNzE2MTMxM1owIwYJKoZIhvcNAQkEMRYEFM%2FKd4MzWL0y1KfF58AHNg9PYqOlMAkGByqGSM44BAMELzAtAhUAtqASnXbD3E2ZM8EhG%2FLxgJhKCs0CFH0qFlBxzWlzS8kjeFw3kad63SHW
    when I use this URL in the browser I get 'HTTP 400' error.
    Using either of the two URL's in the image loader I get the error:
    [WARN] [ImageLoader_0]ImageLoader_0 Status: 400 - (bad request)
    We are currently on SAP MII 14.0 SP05(patch 3).
    Thanks in advance for your help.
    Regards,
    Darshan

    Sam,
    I tried logging in to ECC with the same user as the one that is making the Jco connection and it is giving the same URL which i was getting earlier when i was executing the FM with my user id. I am testing the FM through SE37.
    There is no logic in the custom BAPI to replace the <server> keyword. Based on the image name, it gives the URL of where the image is stored on the KPRO server.
    Could not find URL Decode function in the MII link editor, i believe it is the decode function which you are referring to. Even that is not working. If it is something other than this, do let me know.
    PS: This works fine in the 11.5 system from which we have upgraded to 14.0.
    regards,
    darshan

Maybe you are looking for

  • Smartware backup multiple users on same pc

    I've been playing around with WD Smartware for a good few hours now but can't seem to figure out how to achieve this. I have 4 users and 3 laptops and use continuous file backups for everyone. Each user has their own share WD My Cloud and content bac

  • 10.5.8 unusable after Garageband crash

    For whatever reason, 10.5.8 hung up on me about an hour ago while using GarageBand. It was a complete hang up with only the sound from GB playing. I was unable to access Force Quit or Activity Monitor to kill processes. The only recourse was to shut

  • How do I uninstall adobe cs6 and re install it

    I had to wipe my mac's hard drive. When I went to put CS6 back onto my computer I dragged it from my external hard drive. Now every time I try to open one of the programs I am being told to uninstall it and reinstall it via error 16 When I went to tr

  • Keynote 6.0 Presenter View

    Just installed Keynote 6. In the previous version you were able to adjust the size and position of elements (e.g. current slide, next slide, notes...) in your presenter view. Any idea how to get this done in v6.0?

  • More flv file issues

    hello out there ! What is the reason that at some sites when I go to dl flv files through the activity window of the windows safari menu by double clicking on the flv file I get a text rather then a get video fora dl. And more importantly how do I ge