Display Image in Browser

Dear all,
I have use the JLabel to add the ImageIcon with the filename passed under JPanel. It work on appletviewer but not in Browser.
The appletviewer can show both ImageIcon at the top and the Text at the bottom. But the browser (IE) can only show the Text only. It seems that ImageIcon cannot be added in JLabel.
May I missing something on the code?
Here is my code:
public final static DataFlavor LABEL_FLAVOR =
new DataFlavor(JLabel.class, "Label Instances");
public final static DataFlavor LOCAL_LABEL_FLAVOR = new DataFlavor(
DataFlavor.javaJVMLocalObjectMimeType +
"; class=javax.swing.JLabel", "Local Label");
protected JLabel getLabelFromFile(File f) {
//ImageIcon icon = new ImageIcon(f.getAbsolutePath());
ImageIcon icon = new ImageIcon(f.getName());
JLabel label = new JLabel(icon);
label.setText(f.getName());
label.setHorizontalTextPosition(JLabel.CENTER);
label.setVerticalTextPosition(JLabel.BOTTOM);
label.addMouseListener(this);
label.addMouseMotionListener(this);
return label;
Thanks a lot!
Peter

Hi,
Theres nothing wrong in ur code.
the only problem is in IE's version of java(WFC) the File class doesnot have a getAbsolutePath() mehtos instead it uses the getFullPath() method which isn't there in the actual java class.Thats the reason why ur code isn't working on IE.Infact IE(WFC) doesn't implement any of the following methods
getPath()
getCanonicalPath()
getParent()
getparentFile()
createNewFile()
etc
Maybe u could pass the path of the Image file as a parameter to the applet and then try to display it on the JLabel.
Hope that helps.
Regards,
Partha

Similar Messages

  • Canot display image in browser?? help!!

    <applet code="yew.yew.dirapplet"
       archive="Signed.jar"
       width=400 height=400>
    </applet>i cant display out the image using appletviewer
    but when i sign in the browser it cant display out the image.
    i try many way but still cant solve tis ploblem.
    I din include the .gif into the jar file onli store in the same directory
    hope some applet expert can help.
    Thanks in advanced

    Do you use getImage??
    Then use it like this:
    this.getImage(this.getCodeBase(),"myfile.jpg"); // same dir as the appletthis.getImage(this.getCodeBase(),"../images/myfile.jpg"); // other dir than the appletStill doesn't work, please give us a full trace and some code where the exception occures.
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    Print out the full trace of the exception:
    try{...}catch(Exception e){e.printStackTrace();}

  • Tomcat Doesnt display images in browser

    HI frnds,
    i m hving some prblm wid tomcat server.whenever i display my menu using tomcat 4.1, it displays the text but doesnt display the images,
    i hv checkd all the paths are correct.How to solve this prblm
    Looking frwrd for an early reply

    How are you getting it to display the images?
    Do you get a red x to indicate broken image?
    Right click it, select properties and see what the requested URL is. Is it correct?
    Most probably you are using an absolute link, without taking the web application context name into account

  • Won't display background image in browser.

    My background image displays in dreamweaver and in the live view but it doesn't display in the browser when I try to view in a browser or when I publish the website.  I have spend hours looking for a solution and I am not sure what the problem is. I have checked the code on the following websites and it comes out ok:
    http://jigsaw.w3.org/css-validator/validator
    http://validator.w3.org/check
    I have also tried my code with and without the overflow: hidden;  under #container where the image should be displayed.  (i was trying a new way to design -ie without basic grid and floating everything so the container can be removed if needed)
    here is my code. Please help!!! thank you in advance!!!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Jan Kardys' Literary Agency</title>
    <style type="text/css">
    #header {
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        float: left;
        width: 930px;
        color: #3F9;
    #Menu_bar {
        float: left;
        width: 190px;
    #Page_Content {
        float: right;
        width: 725px;
        height: 500px;
    #footer {
        float: left;
        width: 930px;
    #Main_content {
        float: left;
        width: 510px;
    #xtra_content {
        float: right;
        width: 190px;
    #container {
        width:  930px;
        margin: 0 auto;
        background-image: url(/Images/Parchment.gif);
        overflow: hidden;
    </style>
    <script src="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    </style>
    </head>
    <body>
    <div id= "container">
    <div id="header"><h1>Jan kardy's Literary Agency</h1></div>
    <div id="Menu_bar">
      <ul id="Vertical_menubar" class="MenuBarVertical">
        <li><a href="#">Home</a></li>
        <li><a href="#">About Jan Kardys</a></li>
        <li><a class="MenuBarItemSubmenu" href="#">Rescources</a>
          <ul>
            <li><a class="MenuBarItemSubmenu" href="#">Education Connection</a>
            </li>
            <li><a href="#">Submission Guidelines</a></li>
            <li><a href="#">First Steps to Publishing</a></li>
            <li><a href="http://advancenetworkingunicorn.blogspot.com/">Advanceced Networkinig Blog</a></li>
            <li><a href="#">Library &amp; Publishing Events</a></li>
    </ul>
        </li>
        <li><a href="#">Client Links</a></li>
        <li><a href="#">Art Gallery</a></li>
        <li><a href="#">Contact Jan Kardys</a></li>
      </ul>
    </div>
    <div id="Page_Content">
      <div id="Main_content">Content for  id "Main_content" Goes Here</div>
      <div id="xtra_content"><h3>News &amp; Events
        </h3>
        <p><a title="http://scotlandpubliclibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://scotlandpubliclibrary.org/">Scotland Public Library</a>, Scotland, CT April 21, 2011 6-8pm<br />
      </p>
        <p><a title="http://www.plymouthct.us/library.htm" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.plymouthct.us/library.htm">Plymouth CT Library</a>, Plymouth, CT April 30, 2011 10am<br />
        </p>
        <p><a title="http://www.hplct.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.hplct.org/">Hartford Public Library</a>, Hartford, CT May 7, 2011 10am<br />
        </p>
        <p><a title="http://www.middleburghlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.middleburghlibrary.org/">Middleburgh Library</a>, Middleburgh, NY May 14, 2011 1pm<br />
        </p>
        <p><a title="http://dewlib.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://dewlib.org/">Dewitt Community Library</a>, Dewitt, NY June 21, 2011 7pm<br />
        </p>
        <p><a title="http://gilfordlibrary.org/gpl/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://gilfordlibrary.org/gpl/">Gilford Public Library</a>, Gilford, NH July 7, 2011 6:30-7:30pm<br />
        </p>
        <p><a title="http://www.athollibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.athollibrary.org/">Athol Public Library</a> Athol, MA July 14, 2011 5:30pm<br />
        </p>
        <p><a title="http://www.goshenpublib.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.goshenpublib.org/">Goshen Public Library</a> Goshen, CT July 23, 2011 11am<br />
        </p>
        <p><a title="http://columbiactlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://columbiactlibrary.org/">Saxton B. Little Free Library</a>, Columbia, CT July 26, 2011 6:45pm<br />
        </p>
        <p><a title="http://hampden-library.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://hampden-library.org/">Hampden Public Library</a>, Hampden, MA Sept. 10, 2011 10:30am<br />
        </p>
        <p><a title="http://fortlee.bccls.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://fortlee.bccls.org/">Fort Lee Public Library</a>, Fort Lee, NJ Sept. 14, 2011 7:00pm<br />
        </p>
        <p><a title="http://prosserlibrary.info/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://prosserlibrary.info/">Prosser Public Library</a>, Bloomfield, CT October 3, 2011 6:00-8:00pm<br />
        </p>
        <p><a title="http://iwwg.org" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://iwwg.org">IWWG. org</a>, New York City, October 16, 2011 2:30-6pm<br />
        </p>
        <p><a title="http://www.hchlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.hchlibrary.org/">Henry Carter Hull Library</a>, Clinton, CT October 24, 2011 6:30pm<br />
        </p>
        <p><a href="http://town.canton.ma.us/library" title="http://town.canton.ma.us/library">Canton Public Library</a>, Canton MA Janurary 7, 2012  2:00pm<br />
        </p>
        <p><a href="http://www.town.sturbridge.ma.us/Public_Documents/F0000F86A/library" title="http://www.town.sturbridge.ma.us/Public_Documents/F0000F86A/library">Joshua Hyde Library</a>, Sturbridge, MA March 24, 2012 10:30am<br />
        </p>
        <p>Otis Library Norwich, CT April 14, 2012 12:00am-2:00pm<br />
        </p>
      </div>
    </div>
    <div id="footer"> <h6>Webpage designed by James S. Molina</h6></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("Vertical_menubar", {imgRight:"/SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </div></body>
    </html>

    In regard to the files you currently have on your server, the links to your Spry menu files are still pointing to your local computer.  This is caused when a site has not yet been defined in Site Manager, so DW is forced to link them locally.
    To fix your page, just go into code view and remove the part of the link path that I have underlined and made BOLD.
    <script src="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />

  • My 8530 does not display images in the browser

    My bb 8530 a few weeks ago suddenly stopped displaying images in the browser. Browser options are set to "display images". I've power cycled many times, even reset and wiped, but still no images in browser. How can I fix this? Thanks.

    hi i have noticed the same problem. also with Chrome and FP ver 11.5.31.2and Firefox and Safari with FP 11.5.502.110
    it seems that MovieClipLoader class not returning onLoadInit event. I use to add a fadein function on loadInit to fade in the loaded images. with the latest Flash PLayer versions this is not activated so you cannot see the loaded images.
    I have tested this on 3 different systems and the problem is the same. I have not updated my FP for IE. There, the older FP still works well.
    test systems
    Mac OS LionSafari and FP 11.5.502.110 --- DOES NOT WORK WELL
    Windows 7 64 bit
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL
    Firefox 16.02 with FP 11.5.502.110  - DOES NOT WORK WELL
    IE 9 with FP version 11.4.402.287  - WORKS
    Windows XP SP3
    Firefox 16.02 with FP 11.5.502.110 - DOES NOT WORK WELL
    IE 8 wth FP 11.4.402.287  - WORKS
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL

  • Converting GIF images to JPG - display problems in browser

    I am currently writing a program that uses the ImageIO package (javax.imageio.*) to take GIF and PNG images and convert them to JPG images. The program seems to convert them correctly, especially for the PNG images, but the converted GIF images don't open in a browser. They open just fine in Windows Picture and Fax viewer, but when I try to open them in IE or Firefox, it only diplays the little red 'x'.
    Is anyone familiar enough with Images and the ImageIO package in Java that they may have some insight on why these converted GIF files won't display in a browser.

    Bonjour,
    In my [website|http://iweb.debutersurmac.com>, all the images are JPG files,
    By default iWeb '09 converts images to JPG (yes, it's true)...
    ...unless you use masked images*
    !http://i32.servimg.com/u/f32/09/02/44/99/masked10.jpg!
    Crop your images (with Preview) before you paste them in iWeb. Don't use mask, Unmask an image if it's masked. That's the trick!
    !http://i32.servimg.com/u/f32/09/02/44/99/unmask10.jpg!
    (* images with transparency areas (ex : some PNG and GIF), rotation and shapes in iWeb make also PNG files in your website.)

  • I cannot display image (read from oracle BLOB field) on browser?

    I cannot display image (read from oracle BLOB field) on browser?
    Following is my code, someone can give me an advise?
    content.htm:
    <html>
    <h1>this is a test .</h1>
    <hr>
    <img  src="showcontent.jsp">
    </html>showcontent.jsp:
    <%@ page import="com.stsc.util.*" %>
    <%@ include file="/html/base.jsp" %>
    <% 
         STDataSet data = new STDataSet();
    //get blob field from database     
         String sql = "SELECT NR FROM ZWTAB WHERE BZH='liqf004' AND ZJH='001'";
         //get the result from database
         ResultSet rs = data.getResult(sql,dbBase);
         if (rs!=null && rs.next()) {
              Blob myBlob = rs.getBlob("NR");
              response.setContentType("image/jpeg");//
              byte[] ba = myBlob.getBytes(1, (int)myBlob.length());
              response.getOutputStream().write(ba);
              response.getOutputStream().flush();
         // close your result set, statement
         data.close();     
    %>

    Don't use jsp for that, use servlet. because the jsp engine will send a blank lines to outPutStream corresponding to <%@ ...> tags and other contents included in your /html/base.jsp file before sending the image. The result will not be treated as a valid image by the browser.
    To test this, type directly showcontent.jsp on your browser, and view it source.
    regards

  • Displaying Tiff Image on browser

    Hi friends ,
    I want to display tiff image on browser . For that i have written one servlet witch will desplay tiff image on browser
    Here i am sending my code snippets for servlet.
    Here file is source file which i want to display.
    FileSeekableStream ss = new FileSeekableStream(file);
              ImageDecoder tiffDecoder= ImageCodec.createImageDecoder("tiff", ss, null);;
              p = tiffDecoder.getNumPages();
              for(int x=0;x<p;x++){
              RenderedImage tiffPage = tiffDecoder.decodeAsRenderedImage(x);
              ByteArrayOutputStream stream = new ByteArrayOutputStream();
         TIFFEncodeParam tiffOptions = new TIFFEncodeParam();
         // You may want to set compression or tile attributes on the     EncodeParam here
         RenderedOp l_return = JAI.create("encode", tiffPage, stream,"TIFF", tiffOptions);
         bt = stream.toByteArray();
    then writing this byte array(bt)
    OutputStream out;
    out.write(bt);
    and responce .setContentType("image/tiff");
    i also want to know whether mime type image/tiff is supported or not in servlet.
    When i run servlet i am getting File Downloading dialog box.
    also when i download image file it's size is very large than original.
    Plz correct my code.It's verry urgent.
    Thanks in Advance

    hi, could you post the solution?
    I'm looking forward to know the solution.
    Thanks

  • How to display "Image" object in the browser?

    can anyone please tell me how can i display "Image" object in the browser?
    I have an image object that i retrieved from AS400 BLOB object by using toolbox.jar (for as400 access for java including all necessary classes like jdbc driver, security etc.).
    i want to display this object in the browser so i will be able to web-enable my BLOB objects stored on as400.thx...

    In your HTML:
    <img src="ImageServlet">
    In ImageServlet:
    Make calls to DB to get your image as byte array and store it in:
    byte[] buffer = new byte[imageSize];
    ServletOutputStream out = response.getOutputStream();
    for(int i = 0; i < imageSize; i++)
    out.write(buffer, i, 1);
    out.close();

  • Very freaky, image in browser is not what's displayed

    I was planning on doing a little organization in Aperture, and it seemed images
    were out of place, as not in the right album.
    Then clicking on image in browser to move it, discovered it's not the same displayed is really weird.
    I quit the application before adding any from memory card that I was about to load in.
    I'm at a loss as to what to perform w/o messing up the whole thing.
    If more details are needed, feel free to inquire.
    Thanks

    Wow, now that link was hidden therapy. What a Nice Tour.
    The menu's language at Aperture are so tech writer challenged, for me anyway.
    If I ever get around to writing a third party program or scrip,
    I'd love to create an add on to take every drop down menu item and
    create a hovered cloud explanation as to what's going to happen if it's clicked.
    At 50 something, it would make my day.
    Maybe loading Aperture on a separate drive, and just slam through the gears to see
    what happens vs doing burn outs on existing image files.
    The built in manual I'm afraid is not reader friendly.
    Thanks Much.
    Phil

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Centering and displaying 100% in browser won't work.

    I believe I followed the instructions that were posted previously and I did some reading about centering a page and displaying the page at 100% but I can't seem to make them work correctly. I might have a conflict or something can you help.
    I designed a website which was 1000px wide and now they want it changed (they want an image on both sides of the page)-so instead of changing it around completely and trying to mess with the areas and buffers and all of that fun stuff. I decided to leave the #container (which is were all the data for the site is and were as the template is applied to other pages the size will change -the height will change but the width should stay 100px.)that was there and then wrapp it up completly in another div tag which i labeled #master_container then I inserted 2 more div tags and placed the images on either side as is desired. I followed the instructions above (because now the site is soo big displaying in a browser is diffacult). I need the site to do 3 things.
    -i need it to display centered on the page so that no matter what browser it is displayed in or what size screen it is viewed on it fits the center of the screen.
    -I also would like it to fit the screen of the person using it so that they see the whole page as one and there isn't a huge blank space on one of the sides -right now it is on the right.
    -if you know how to make the two images on the side of the screen scroll as the person scrolls down the page-(ie-so that they don't see part of the image sometimes and other parts of it when they move farther down-wouldl like it to scroll with them as they move down the page)
    HERE IS THE XHTML CODE OF MY SITE:
    <!DO.TYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    </style>
    <link href="../Unicorn_main_layout_template_oldform - CopytestCSS.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Master_container">
      <div id="ancestor_left"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor right" /></div>
      <div class="container">b</div>
      <div id="ancestor_right"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor_right" /></div>
    </div>
    </body>
    </html>
    HERE IS THE CSS STYLESHEET ATTACHED TO THE TEMPLATE I AM TRYING TO APPLY TO ALL OF THE PAGES OF THE SITE.
    @charset "utf-8";
    /* CSS Document */
    #body {
        text-align:center;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    #Master_container {
        width: 2300px;
        margin: 0 auto;
        text-align: left;
        margin-right:auto;
        margin-left:auto;
    #ancestor_left {
        float: left;
        width: 660px;
    .container {
        height: auto;
        width: 1000px;
    #ancestor_right {
        width: 660px;
        float: right;
    THANK YOU VERY MUCH FOR YOUR HELP!!!

    Ok I have no idea what i am doing wrong this is the most frusterating thing I have ever done. I will never build another webpage again.
    Here is the problem that I have i don't care how it gets solved but I just need it solved. this is over a week trying to solve one problem. I just don't have the time to do it anymore but I need it done.
    1) this page (http://practiceuploadingsite.info/) needs to be centered.  That's all just centered in the brosers that it opens in. (nothing I try seems to work)
    2) every other page on that website after you click into the home page (http://practiceuploadingsite.info/Pages/home.html) is made by the application of a template. All I want to do is keep eveything the same as it is right now and just add 2 background images (one on the right and one on the left) so that this:
    fits inside of the blank space of this:
    preferably so the images scroll down the page because the center colum will change height but not widith depending on the page the template is applied to. 
    I even tried to remake the template as to include the images all at once with the div tages and the header seems to have nothing but problems and I couldn't get them to stay together correctly. they keep coming up uneven and the header that is contained on the page spans the entire container and will not just stay the way it is.
    Just please tell me how to do this and you will never hear from me again.
    I am uploading the site information so you have the files I am working from Idk if it is something wrong with the headers the div containers or what but almost just put my computer through the window so I don't care how to get it done just please spell it out so I can follow it correctly.
    THANK YOU!!
    THIS IS THE MAIN LAYOUT TEMPLATE THAT IS APPLIED TO THE WORKING SITE THE WAY I WANT IT EXCEPT FOR THE IMAGES
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Unicorn Main Layout Template</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <style type="text/css">
    #container {
        width: 1000px;
    #header {
        width: 1000px;
        text-align:left
    </style>
    <!-- TemplateEndEditable -->
    <link href="../Stylesheet_Unicorn_main_layout_template.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>css3menu.com</title>
        <!-- Start css3menu.com HEAD section -->
        <link rel="stylesheet" href="CSS3 Menu_files/css3menu1/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style>
        <!-- End css3menu.com HEAD section -->
    <link href="../Menu_bar_stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="header_editable" -->
      <div id="header">Unicorn Writers Conference</div>
    <!-- TemplateEndEditable -->
      <div id="menubar_left">
    <ul id="MenuBar" class="topmenu">
    <!-- Start css3menu.com BODY section -->
        <li class="topfirst"><a href="../Pages/home.html" style="width:190px;">Home</a></li>
        <li class="topmenu"><a href="../Pages/Events.html" style="width:190px;">Events</a></li>
        <li class="topmenu"><a href="../Pages/Mission_Statement.html" style="width:190px;">Mission Statement</a></li>
        <li class="topmenu"><a href="../Pages/Resources.html" style="width:190px;"><span>Resources</span></a>
        <ul>
            <li><a href="../Pages/Advanced_Networking.html"><span>Advanced Networking</span></a>
            <li><a href="../Pages/Qurey_Review.html">Query Review</a></li>
            <li><a href="../Pages/MS_Review_Sessions.html">M.S. Review Sessions</a></li>
            <li><a href="../Pages/1-1 Sessions.html">1-1 Sessions</a></li>
            <li><a href="../Pages/Workshops.html">Workshops</a></li>
            <li><a href="../Pages/final_2013_DAY_SCHEDULE.pdf">Genre Chart</a></li>
            <li><a href="../Pages/Writers_links.html">Writers' Links</a></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Key Presenters</span></a>
        <ul>
            <li><a href="#"><span>Speakers</span></a>
            <ul>
                <li><a href="../Pages/speakers_page_2013.html">Speakers 2013</a></li>
                <li><a href="../Pages/Speakers_2012.html">Speakers 2012</a></li>
            </ul></li>
            <li><a href="#"><span>Editors</span></a>
            <ul>
                <li><a href="../Pages/Editors_2013.html">Editors 2013</a></li>
                <li><a href="../Pages/editors_2012.html">Editors 2012</a></li>
            </ul></li>
            <li><a href="#"><span>Literary Agents</span></a>
            <ul>
                <li><a href="../Pages/L_agents_2013.html">Literary Agents 2013</a></li>
                <li><a href="../Pages/L_agents_page_2012.html">Literary Agents 2012</a></li>
            </ul></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Information</span></a>
        <ul>
            <li><a href="../Pages/St_Clements.html">St. Clements</a></li>
            <li><a href="../Pages/Directions.html">Directions</a></li>
            <li><a href="../Pages/Hotel.html">Hotels</a></li>
            <li><a href="../Pages/Menu.html">Menu</a></li>
            <li><a href="../Pages/Unicorn_Photo_Gallery.html">Unicorn Photo Gallery</a></li>
            <li><a href="../Pages/final_2013_DAY_SCHEDULE.pdf">Day Schedule</a></li>
            <li><a href="../Pages/FAQ.html">FAQ</a></li>
            <li><a href="../Pages/Staff.html">Staff</a></li>
            <li><a href="../Pages/Contact.html">Contact</a></li>
        </ul></li>
        <li class="topmenu"><a href="../Pages/Registration.html" style="width:190px;">Registration</a></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Acclaim</span></a>
        <ul>
            <li><a href="../Pages/Spotlights.html">Spotlight</a></li>
            <li><a href="../Pages/Testimonials.html">Testimonial</a></li>
            <li><a href="../Pages/Sponsorship.html">Sponsorship</a></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Classifieds</span></a>
        <ul>
            <li><a href="../Pages/View_Classifieds.html">View Classifieds</a></li>
            <li><a href="../Pages/Place_Classifieds.html">Place Classifieds</a></li>
        </ul></li>
        <li class="toplast"><a href="../Pages/Merchandise.html" style="width:190px;">Merchandise</a></li>
    </ul><p class="_css3m"><a href="http://css3menu.com/">Horizontal Menu Using CSS Css3Menu.com</a></p>
    <!-- End css3menu.com BODY section -->
      </div>
      <!-- TemplateBeginEditable name="main_content_editable" -->
      <div id="main_content">
      <p>Main Content</p>
      </div>
      <!-- TemplateEndEditable --></div>
    <div id="footer">This Page was built webmaster- SKYFALL</div>
    </body>
    </html>
    HERE IS THE STYLE SHEET ATTACHED TO IT
    @charset "utf-8";
    /* CSS Document */
    #container {
        height:auto;
        text-align: left;
        width: 1000px
    #header {
        width:990px;
        height: 250px;
        clear:both;
        font-size:xx-large;
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        color: #C3F;
        margin-top: 5px;
        margin-right: 5px;
        margin-left: 5px;
        background-image: url(Images/header_final.png);
        text-align: left;
    #menubar_left {
        float: left;
        width: 200px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 5px;
    #main_content {
        float: right;
        width: 780px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-right: 5px;
        background-image:url(Images/parchment2.jpg);
        font-size: large;
        text-align: left;
        vertical-align: top;
    #footer {
        font-size: x-small;
        clear: both;
        width: 990px;
        margin: 5px;
    .title_mainmenu_content {
        font-family: "MS Serif", "New York", serif;
        font-size: 18px;
        text-decoration: underline;
        vertical-align: top;
    #container #main_content p1 {
        text-align: center;
        font-size: x-large;
    #container #main_content p2 {
        text-align: center;
        color: #F00;
    #container #main_content p span p4 {
        color: #F00;
    .Workshop_title {
        text-align: right;
        font-weight: bold;
    #container #main_content table tr td .title_mainmenu_content .title_mainmenu_content_jan {
    HERE IS MY ATTEMPT TO REDUE IT (STYLESHEET IS INCLUDED IN THE DOCUMENT I WILL MOVE IT LATER)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    #ancestor_left {
        width: 660px;
        float: left;
    #ancestor_right {
        width: 660px;
        float: right;
    #Master_container {
        width: 2340px;
    #wrapper {
        width: 1000px;
        float: center;
    </style>
    </head>
    <body>
    <div id="Master_container">
      <div id="ancestor_left"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor image left" /></div>
      <div id="wrapper">What the heck is wrong with this</div>
      <div id="ancestor_right"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor image right" /></div>
    </div>
    </body>
    </html>

  • Preview and safari do not display images in a pdf, where as chrome will. How do I fix this?

    I'm on the newest OS X Yosemite and I have an issue with viewing pdfs in both preview and safari. The figures show up fine from Chrome. This also leads to the issue of when I try to print off the pdf. The images do not appear in the printed version.
    Safari/ Preview:
    Chrome:

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • Displaying image from database table.

    Hi All,
       I am very new to Web Dynpro ABAP.
      I am developing an application to display an image in "Image" UI Element.
      For this I have one table consisting of fields image id, image data and image name. here image id is primary key field.
    Now i want to display an image from that table in "Image" UI Element. For this i am using "Filedown load" UI element.
    But by using filedownload ui element i can diaplay image in another new page.
    But my requirement is to display image in the same web page without creating a new one.
    (I want to display the image in "Image" UI element without storing that image in MIME objects.)
    Can anyone help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    What you describe is completely possible.  Since you have the image data (XSTRING) in the context you have everything you need.  You don't need to store the content into the MIME Repository, but you do need to get it somewhere where it has an externally accessible URL.  Remember you need to supply image UI element with a URL.  This URL is processed on the client side by the web browser.  Therefore just giving it a path to the context won't work as that isn't externally accessible.
    I would suggest instead that you place the image content into the ICM cache temporarily.  This lets you basically generate a temporary URL for the image that can be used by the Image UI element. 
    Here is some example code that pushes images into the ICM Cache:
    ****Create the cached response object that we will insert our content into
      DATA: cached_response TYPE REF TO if_http_response.
      CREATE OBJECT cached_response
        TYPE
          cl_http_response
        EXPORTING
          add_c_msg        = 1.
       try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      DATA: l_app_type TYPE string.
      DATA: l_xstring TYPE xstring.
          cached_response->set_data( me->gx_content ).
          l_app_type = me->gx_mimetype
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
    ****Set the Response Status
      cached_response->set_status( code = 200 reason = 'OK' ).
    ****Set the Cache Timeout - 60 seconds - we only need this in the cache
    ****long enough to build the page and allow the Image on the Client to request it.
      cached_response->server_cache_expire_rel( expires_rel = I_CACHE_TIMEOUT ).
    ****Create a unique URL for the object
      DATA: guid TYPE guid_32.
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = guid.
      CONCATENATE i_path '/' guid '.' i_format INTO r_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = r_url
                                           response = cached_response ).

  • Displaying image in Dashabord and Answers

    I have already put the image to the following folders:
    C:\OracleBI\web\app\res\s_oracle10\images
    And
    C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10
    The presentation service was restarted.
    The report refers to the image as : fmap:images/your_namename.gif
    The dash refers to the image as : fmap:impages/your_gif.gif
    However the image is not displayed (only a red cross is available in the) in the report /dashboard.
    can anyone please help.. thanks!

    Hi check the below link, i have updated the step in detail
    Re: Add new image in Conditional Column Format
    Contents:
    Try the two solution for this, go to
    *1. This will use to call the images using fmap keyword*
    <directory>:\OracleBI\web\app\res\s_oracle10\images
    And
    <directory>:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\images
    folder copy your images (gif/jpg) in both the folders (images must be copied in both folders with same name).
    Restart the ocj4_admin and BI presentation services.
    You can refer the image by giving the following format fmap:images/youimagename.gif
    *2. This will use to display images in the images browser*
    <directory>:\OracleBI\web\app\res\s_oracle10\meters
    And
    <directory>:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\meters
    Step i) Create a folder in the above two path with same name (i have taken MyImages)
    Step ii) Copy your images in one subfolder like below (i have created a subfolder called setA)
    <directory>:\OracleBI\web\app\res\s_oracle10\meters\MyImages\setA
    And
    <directory>:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\meters\MyImages\setA
    Step iii) Leave one image in the MyImages folder with the name of index.gif. This will show in the left side legend of the image browser.
    Now restart your oc4j_admin and bi presentation services.....
    h1. Note:_
    Must clear the browser cache and temprory internet files. Sometimes the changes are not get reflected even the services are restarted.
    Hope this helps, let me know if you need more

Maybe you are looking for

  • T5220 and Solaris 10 U6 -  Jumpstart problem

    Hi Server T5220 booting and installing (Sol 10u6) from DVD without any problem. But when I try to install server via net I have problem. I prepared install server according doc (Solaris 10 8/07 Installation Guide: Network-Based Installation) Install

  • Upgrading JDeveloper11.1.1.2 to JDeveloper 11.1.1.5

    Hi , I got an assignment to run our existing application which is developed in Jdeveloper 11.1.1.2.0 on JDeveloper 11.1.1.5 . I installed JDeveloper 11.1.1.5 and run my application . when I am going to login in the application . it gives me following

  • Nav Buttons

    On my work page the nav bar looks perfect. when i view in safari or netscape, the nav bar buttons have small spaces between them. Anybody know why? thanks.

  • Simple cold backup script

    I am a linux newbie and I need a simple script that will do the following for me. I am using Oracle 11g and RHEL 6 ....I wanting to use VI to write a script and schedule it nightly.... 1.) shutdown the database 2.) copy the dbf's and maybe the archiv

  • My completely awesome feature request list

    I love my iPhone, and here are thirteen ways I could love it more. (And maybe convince the skeptics to pick one up!) (1) Audio streams in the iPod app. The ability to listen to internet radio while on the go would throw a pie in the face of XM and Si