Display Image in htm file of KM document

Hello experts,
I embeded one image in my KM document but when I check-in the document and view it on the portal it says image not found.
I needed to know how to embed an image in KM document (htm) which can be visible on the page when published on portal.
do I have to upload the image on MIME repository of portal and then use in the html?
Is this possible? or I need to use some other technic...
Appreciate your help
Regards,
amit

Hi,
You have to provide the full path of the image even it is in the same folder with the html document. For example, if the path of the image is "/documents/www/images/test.gif" in the html page you should use :
>img src="/irj/go/km/docs/documents/www/images/test.gif"<
Abdul.

Similar Messages

  • Response Already commited exception while displaying Image outside WAR File

    My application contains a JSF page, which is bound to a Spring bean. The UI components state of the JSF page is provided by the Spring bean properties (This means the Spring bean is the backing bean of the JSF page) . My problem is the JSF page also contains a graphicImage meant to display image stored outside the WAR file.
    I tried using the ImageServlet that streams the image to the HttpServletResponse as suggested in:
    http://balusc.blogspot.com/2007/04/imageservlet.html However, I receive a Response Already commited exception. I guess this is because the Faces servlet has already sent back a response based on the other UI component values and the ImageServlet is then trying to repeat that. Please suggest how to handle this

    First thanks for your prompt reply but I am still stuck. Let me get into details. My JSF page is:
    <f:view>
      <h:form id="MyForm" >
        <h:graphicImage value="image?file=#{springDaoRef.imageName}&url=#{springDaoRef.imageUrl}"  width="100" 
           height="100"/>
       Category: <h:outputText value="#{springDaoRef.categoryName}"/>
       Image Title: <h:outputText value="#{springDaoRef.imageTitle}"/>
      </h:form>
    </f:view>The ImageServlet is receiving the file and url parameter values and reading quite fine from the image present in the file system. The problem occurs at the following statement in ImageServlet:
    output = new BufferedOutputStream(response.getOutputStream());Im using Glassfish and it reports the following stack:
    ApplicationDispatcher[/OnlinePhotoSharingApp_1] PWC1231: Servlet.service() for servlet ImageServlet threw exception
    java.lang.NullPointerException
            at net.time2know.classes.ImageServlet.processRequest(ImageServlet.java:106)
            at net.time2know.classes.ImageServlet.doGet(ImageServlet.java:123)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
            at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@f801ef) threw exceptionI am assuming that the image request is going through the FacesServlet. But now my question is how to inform JSF that the response is complete (via FacesContext.responseComplete()) which will enable the ImageServlet to send the image response?

  • Displaying image from binary file

    I am converting a image file(jpg) into a binary file and sending it. In the receiving side i got back the binary file and want to display the image in the applet or store the image in a file. while trying to do this i am not able to read the image from the buffer. Below here i have given my code.
    File f= new File("image.jpg");
           FileInputStream fis = new FileInputStream(f);
           byte [] buffer = new byte[(int)f.length()];
           fis.read(buffer,0,buffer.length);
           fis.close();
          File f1 = new File("input.txt");
          int length = buffer.length;
          PrintWriter pw;
           pw = new PrintWriter(new BufferedWriter(new FileWriter(f1)));
          for(int i=0;i<length;i++)
              pw.println(Integer.toBinaryString(buffer));
    pw.flush();
    pw.close();
    converting back to image i get error
    File f1 = new File("inp.txt");
    FileInputStream fis = new FileInputStream(f1);
    buffer = new byte[(int)f1.length()];
    fis.read(buffer,0,buffer.length);
    Toolkit tk = Toolkit.getDefaultToolkit();
    img = tk.createImage(buffer);
    Reply me as early as possible.thanks.

    You have two glaring problems here.
    Firstly, you are writing via writers, which are intended for text and are probably corrupting your data. You want to be using a FileOutputStream.
    Secondly, when reading in you are not checking the number of bytes read and may well not be fully populating your array. You want to change your reading code to something like this,
        buffer = new byte[(int)f1.length()];
        int read = 0;
        while (f1.available() > 0)
            read += fis.read(buffer, read, buffer.length - read);
        }

  • Quicklook doesn't display images in numbers files

    I encountered an issue with Quicklook not displaying Numbers files correctly (after pressing spacebar). The contents of the files (tables, text) are displayed except for images contained in the files. The thumbnail/preview in the Finder window is rendered correctly.
    I ran qlmanage -p *.numbers on a folder containing several Numbers files and this is the output:
    2013-10-25 21:12:32.526 qlmanage[3822:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa827, name = 'com.apple.tsm.portname'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2013-10-25 21:12:32.529 qlmanage[3822:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa92f, name = 'com.apple.CFPasteboardClient'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2013-10-25 21:12:32.529 qlmanage[3822:507] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
    2013-10-25 21:12:32.537 qlmanage[3822:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x3e0f, name = 'com.apple.coredrag'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    macbook-pro-van-henk-bulder:lay out! henkbulder$ subl /usr/include/servers/bootstrap_defs.h
    macbook-pro-van-henk-bulder:lay out! henkbulder$
    btw it turned out /usr/include/servers/bootstrap_defs.h did not exist on my system so that didn't really help...
    I hope someone can put me in the right direction...

    Same issue here and same error message, but with .tex files.
    This seams to be a Mevericks specific issue.
    I found other people with the same problem:
    https://github.com/rjregenold/jsonlook/issues/3
    http://www.logicprohelp.com/forum/viewtopic.php?t=100846&p=528051

  • Display images with same file name and different file types.

    I want to write a method, which receives file names (image1, image2, image3) but without the extension. This method will handle most of the image types (.jsp, .png, and ...) , what is the best way to write the method? Should I loop through all the image types for a given file name? I really don't want to do that...

    Topcan5 wrote:
    I want to write a method, which receives file names (image1, image2, image3) but without the extension. This method will handle most of the image types (.jsp, ..Since when are Java Server Pages an image type?
    .. .png, and ...) , what is the best way to write the method? Should I loop through all the image types for a given file name?.. Sounds reasonable.
    ..I really don't want to do that...Why not?
    As an aside, this entire task sound suspicious. Why on earth would you need such a method?

  • File-type "Firefox Document (.htm)" images saved to the HD won't open

    Images online occasionally default to file-type Firefox Document (.htm) as opposed to the usual jpg. They will not open even with firefox and display as coding.

    Can you describe in more detail what happens when you try to open the saved movie? I don't know what you mean by "main menu1".
    Since you saved your movie you may find it completely intact in the project's Package Contents folder. Right-click on the project icon (the one with the star on it). Select Package Contents in the drop down menu. In the Package Contents folder you should find a file named (project movie title).iMovieProj. Open that file and see if your movie is intact with all edits. If it is, duplicate it and move it to your desktop. Rename and save it as a new project. Don't otherwise mess with the Package Contents.
    Is your external drive formulated for Apple? Should be MAC OS extended or MAC OS extended (journaled).

  • File Explorer won't display image in local HTML file

    I'm studying HTML. I created a file, RECIPE.HTM and in it I have a tag to an image file, HOTDOG.PNG, located in the same folder.  When I open the RECIPE.HTM file, it displays correctly in the browser.  It will not display in the Preview Pane, however.
    It gives me the warning, "Some pictures have been blocked to help prevent the sender from identifying your computer. Open this item to view the pictures."
    Can I enable the preview pane so it will display embedded images in html documents?  I realize that on a live site this might be risky, but my files are all local.  Regardless, I'd like to have the option.

    Hi,
    If you want to get rid of the warning, you must save the complete web page, not just the html. You have 2 options in the Save as... dialog in IE that does this:
    Web page, complete (*.htm;*html)
    This stores the html, and also all related resources (images, css files, js files etc) in a separate folder on your computer.
    Web Archive, single file (*.mht)
    This stores everything inside a single file, that can be read by IE. This stores all resources within the file as binary data.
    You can refer to the link below for more details:
    http://superuser.com/questions/297428/images-blocked-in-windows-explorer-preview-pane-when-viewing-saved-webpages
    Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Roger Lu
    TechNet Community Support

  • Displaying Image in Document Category Created through N2T6

    Hi Experts,
           I am Creating a Document Category in ISH from Tcode N2T6 i want to display the image on the Screen Created  for Document   Category.
             Please let me know how to display image in document category.
    Regards,
    Rajesh

    Hi Rajesh,
    there are a few options to integrate images into a PMD application. At the end it depends on your use case. For example an image taken by CT would be shown using an external application, the DICOM viewer. On the other hand a simple picture used for illustration purpose can be easily integrated.
    In case you want to use an external application, I would recommend to implement a button in the PMD or the application toolbar to call the viewer application.
    In case you want to embed the picture into the PMD you have to utilize a Link element. There are a few implementations shipped with the standard delivery. For details check the online help [here|http://help.sap.com/erp2005_ehp_05/helpdata/en/4d/c7854878c86d4be10000000a42189e/frameset.htm] In paticular please check the PICTURE link element type.
    In addition you can also implement your custom link element type.
    Also I would like to share with you, that in the next delivery, Siemens will shipped a link element type for image management. It was designed to work with various image management services, but for now we have a implementation with imagic ims only.
    Hope this helps.
    Axel Biernat
    Siemens AG
    Product Commercialize - Knowledge Transfer

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • Using flash to display images from sql server or file system

    hello,
    what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..
    also movie should update everytime a new image is added to a database or file
    the images can either be in a file system or in a sql database (if possible)
    does flash comes with an object of this type or we have to create it.
    regards,

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • When I try to open a saved image with the "htm" file extension all I get is a page of gibberish text.

    I have the new Snow Leopard system on my iMac. I saved several images from an art site. The file extension on each image is "htm". when I try to open each image all I get is gibberish tpye text.
    Can convert these "images" to jpeg files so I can view and edit them?
    thanks

    If the images have a .htm(l) file extension then you need to rename the files and give them an image file extension like .jpg<br />
    That should be sufficient to make programs recognize them as images.

  • Editing Image From PDF File To Use in AI Document

    Hello,
    I am a beginner user of AI and am having trouble with editing certain images from PDF files on Illustrator. I'm not even sure what I'm trying to do can be done on Illustrator or requires Photoshop.
    A) Here is the first example (Note that this is only similar to the type of image I am talking about. It is not the exact one as I don't have access to it right now):
    So let's say here are the things I want to do. (1) Extract it from the PDF file, (2) transfer it to my AI document without blurriness, (3) change the white background of the image to another color (eg. grey), (4) and embolden the lines presently in the image. If you can advise what's the way to perform these tasks?
    I have used image trace at times but if the photo is too light, portions of it will vanish. The portions that do remain become way too bold. It would be great if there was a way I could make most if not each components of the image controllable/movable. Is it possible?
    Also, what if I want to erase some of the text on the image? I have tried using the eraser tool but it does not erase on images.
    B) How would I go about removing the background of a photo like this and replacing it with a color?
    Please keep in mind that I am a complete neophyte when it comes to using Illustrator, Photoshop etc so take this into consideration when explaining. Thanks in advance

    Trent,
    To make a clear and clean drawing like A), it is better to use the image as a locked template and recreate with the native tools; most things can be made with the Rectangle Tool and the Ellipse Tool, some with the Line Segment Tool or the Pen Tool; and you can use different Window>Pathfider operations.
    It is probably easier to get rid of the surroundings in B) using Photoshop where you can erase colours within a range; the grass seen through the windows may be treated by itself, and you may wish to keep the shadow.

  • Some .htm file not displaying in Topic List, but displaying in RH11 folder

    Hi All,
    We are running a project using RH 11, team consist of 3 person (include me)
    But we have problem with many  .htm file from my 1st coworker, file not displaying in Topic List in my Robohelp and 2nd coworker.
    Although we already get the latest file again and again
    But .htm file displaying in all our RH11 folder.
    In my 1st coworker RH, all file displaying in Topic List also RH11 folder, but when file generated then
    Many files from 1st coworker, hyperlink is not working well (broken link / file not found)
    Does anyone have experience about this problem
    Thanks

    First of all, make sure you do not have the following files in source control: .cpd, .pss, .ldb.
    These files contain local information that can cause problems when in source control.
    Then try this:
    Everyone deletes the .cpd file.
    Everyone gets the latest files for the whole project from source control.
    Open the project.
    Does everything now display correctly?
    If yes, you need to make sure you delete the cpd file before opening the project each day, and also during the day if you know a co-worker has made changes that you need. This file is a database which includes a list of all the files Robohelp knows about. When other people are adding and removing files, this information no longer matches properly. I recommend doing a Get Latest in these situations as well, just to make sure Robohelp can find the correct information.
    If you are still not seeing the correct files repeat the above process, but at step 2, pick the options to Overwrite local files. I can't say where you will see these options - they may be two checkboxes in a dialog box when you select Get Latest - it will depend on your source control application.
    Hope this helps.

  • CS6 InDesign - Default display is high-quality. Four placed images are Illustrator files. Three images look the way they should - high-quality. One image looks pixelated. Why?

    InDesign CS6 - Default display is high-quality. All four placed images are Illustrator files. Three images look the way they should - high-quality. One image looks pixelated. Why?

    Not sure if this will help, but what is your inDesign file's "Transparency Blend Space" set to? It's under the edit menu.
    Also, when you are placing your images, are you selecting "Show Import Options" and making any selections there?

  • Display image file from outside web

    Hi.
    My application is in c:\projects and I need to display images from d:\Photo.
    Can anybody tell me how to do that?
    BR
    Soren

    You could always make a servlet which loads the image from that directory.
    <img src="/servlet/imageServlet?image=myImage.jpg">
    Have the ImageServlet load the file from disk, and send it out via the ouputstream.
    Apart from that no. Web applications can only access directories under their context. Accessing anywhere else would be a security issue.
    Cheers,
    evnafets

Maybe you are looking for

  • Message Mapping takes long time to save and activate

    I have one problem in my present interface... the message structure is large and when mappping is over and I click save button it will take long time for activation.. should I change any parameter in admin? or is it bcos of java web start version? ne

  • Getting inline images to stay in text

    I'm using RH7 in TCS 1 on windows XP. I have text that contains icons.  For example, "Click the add icon (image) to add a new rule to the policy."  Sometimes the add icon stays in the parentheses and sometimes it drops to a line all by itself with a

  • 11gR2 Fresh Install , Enterprise Manager dbconfig failure.

    Fresh install of 11gR2 on Linux x86_64. Database is installed, EM repository gets created but dbconfig doesn't load. Error in emca log file is SEVERE: Error Loading TransX:ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone region

  • Test Scenario Error

    Hello All ~ I am a novice to DocuMaker Studio and I am trying to run a test scenario but keep getting the following error. Can anyone shed some light? [12:17:56PM] Error: Write Exception at 0x0039e27c - Attempted to Write to 0x00000000 [12:17:56PM] E

  • DLS music service wont allow me to change banks

    I am trying to change my sound in the edit window of the DLS music service in garage band for using sound fonts, and for some reason the menu for changing sound banks from the default (quick time synthesizer) is "greyed out" and unavailable. if any o