How to give URL path of image

Hello Exprts ,
I have following code to load an image from the table on screen.
method FILL_PICTURE.
    types PICT_LINE(256) type X.
    data  PICT_TAB type table of PICT_LINE.
    data  URL(255) type C.
    import PICT_TAB = PICT_TAB from database abtree(PI) id 'PICTURE'.
    call function 'DP_CREATE_URL'
         exporting
              TYPE    = 'IMAGE'
              SUBTYPE = 'GIF'
         tables
              DATA    = PICT_TAB
         changing
              URL     = URL.
    call method PICTURE->LOAD_PICTURE_FROM_URL exporting URL = URL.    call method PICTURE->SET_DISPLAY_MODE
         exporting DISPLAY_MODE = PICTURE->DISPLAY_MODE_FIT_CENTER.
  endmethod.
Now what I need to do is I need to give a path of the image on DMS, so where should I change this code?
OR is there any other method to convert the path into URL?
Please Help!!!!!!

Somehow this question seems to pop up all the time. I don't blame you for asking it, though. The problem is that there is no easy or general way of doing what you ask for. You can have a look at the following thread to see some suggestions: http://forum.java.sun.com/thread.jsp?forum=31&thread=328939
(Take a closer look at reply 27 in that thread.)

Similar Messages

  • How to give network path while creating oracle directory.

    I have created
    CREATE OR REPLACE DIRECTORY TESTDIR AS '\\168.176.33.117\TESTDIR';
    but through this path i m not able to create text file.
    create or replace procedure WriteTest is
    f utl_file.file_type;
    s varchar2(200) := 'this is some info';
    begin
    f := utl_file.fopen('TEST2DIR','sample2.txt','W');
    utl_file.put_line(f,s);
    utl_file.fclose(f);
    end WriteTest;
    Help how to give network path while creating oracle directory.
    --when i give local machine path then it will create at local machine where oracle is installed. but not able to create at other machine.
    Zakir

    Well for starters your directory object is called TESTDIR and in your fopen statement you are referring to TEST2DIR.
    On top of that I'm not sure oracle is happy to refer to network locations. I think you have to map it to a regular drive mapping (shared directory) type path. Can't say I've every tried to do it though.

  • How to give relative path in web.xml?

    Hi All,
    Im creating a servlet which has to load the properties file.
    I don't want to give the location of the properties file as ABSOLUTE PATH. But I'm unable to provide the same as RELATIVE PATH.
    When I give the path is given as ABSOLUTE PATH (drive:/dir/) it is working. But if I give the RELATIVE PATH(../), the same is not working.
    Kindly help me in this.
    Regards,
    Kumar Madhavan.
    My web.xml file is:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <display-name>NGT - ASCII</display-name>
         <description>Application for Safety Critical Information vIew.</description>
         <welcome-file-list>
              <welcome-file>ASCII.html</welcome-file>
         </welcome-file-list>
         <context-param>
              <param-name>asciifiledir</param-name>
    <!-- This is the tag in which I would like to
              <param-value>../</param-value>
         </context-param>
    </web-app

    Hi.
    Exclude the directory path from the <param-value/> in
    the web.xml and just keep the property file name.
    Place the property file in the classpath and load it
    like this from the servlet:
    Properties props = new Properties();
    String propFileName = "" // Read param-value from web.xml
    try {
    InputStream is = TheServlet.class.getResourceAsStream(propFileName);
    props.load(is);
    } catch (Exception ex) {
    System.out.println("Prop file not in classpath!");
    /Jesper

  • Correct URL path for images on HTML reports

    We are using Reports Server 6.0 and rwcgi60.exe to display HTML reports on the web. A number of our reports have embedded charts in them which get converted into gifs when the HTML report gets generated.
    The problem is that the HTML report has a <base href="http://machinename/cache/xyz.html"> at the top of the report. In our case, the machinename is the name of the web-server. However, when folks go to our website, they actually see our domain name rather than the internal machine name of the web-server. Hence, the images do not show up as the URL associated with the image is not accessible by folks coming from outside the web-server.
    Is there some setting that will help us set the base href associated with generated reports? Or is there some other way to get the reports to show up with images on the web?
    Thanks

    You can't change the base tag - but I'm not sure I understand the problem. If machinename.domain is the full name of the machine running the webserver, and this is what was used when calling the CGI, then this is what the base tag will have. Does your machine have 2 names or something - and only 1 gets resolved to some folks?
    Regards
    The Oracle Reports Team http://technet.oracle.com

  • How to give url to an tree element?

    I have created a 2 views
            The first view contains a Tree Control like:
    MainMenu 1
                          - submenu 1
                          - submenu 2
    MainMenu 2
                          - submenu 1
                          - submenu 2
    MainMenu 3
                          - submenu 1
                          - submenu 2        and a tranparent container in the right side of tree.
           The second view contain some contents.
          I want to give action for the tree element like if I click the submenu , it should display the second view in the transparent container of the first view.
          Can anyone pls suggest me?
    Thanks.

    Hi Abdul,
            I guess what you need is a Link To Action table column. You can achieve same by following the below mentioned steps:
    1) click on table and try to bind it to the context node
    2) change the property "cell editor of table column" to "link to action" of the column/attribute from where you would like to trigger the action.
    3) bind the "visible" property of VC to a context attribute of type boolean
    4) set this attribute to abap_true in event OnAction__()
    this will display your view at that location.
    Hope this helps.
    Regards,
    Anoop

  • How to give manual font path location when document opening?

    Hi,
    I want to know how to give manual path location for fonts when document opening like LinoType FontExplorerX, Font Book, UTS. Please Help me its very urgent
    Thanks

    Hi, I am doing the code likthis,please give the solution.
    SQL> create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    2 insCtx DBMS_XMLSave.ctxType;
    3 l_ctx dbms_xmlsave.ctxtype;
    4 rows number;
    5 begin
    6 insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    7 rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    8 DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    9 end;
    10 /
    Procedure created.
    SQL> begin
    2 insProc('/usr/tmp/ROWSET.xml', 'emp');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 7
    ORA-06512: at line 2
    Kishore B

  • How to specify relative path for background image  in xsl

    Hi,
    I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
    Can anyone tell how to do this???
    Thanks,
    Sanjeev.

    I have a fo:block like this :
    <fo:block border-style="solid" border-width="0.2pt" text-align="left"
                             background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
                             font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
                             padding-bottom="1pt">
                             <xsl:value-of select="tr/td/span" />
                        </fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
    has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
    Thanks.
    sanjeev.

  • How to give jdk location path in windows 7 for odi installation

    I downloaded a file ofm_odi_generic_11.1.1.5.0_disk1_1of1 and ofm_rcu_win_11.1.1.5.0_disk1_1of1 .
    In ofm_rcu_win_11.1.1.5.0_disk1_1of1 file i found java in bin under jdk.
    In my pc Path is D:\OdiHome\rcu\rcuHome\jdk\bin
    The above same path i gave but it was not taking any thing and asking same question specify jdk location.
    Kindly provide me the details how to make this success .Thanks in advance.

    Hi
    The path is now managed by Windows 7 and not the autoexec.bat or autoexec.nt files. To change the system environment variables, follow the below steps.
    1.From the desktop, right-click My Computer and click Properties.
    2.In the System Properties window, click on the Advanced tab.
    3.In the Advanced section, click the Environment Variables button.
    4.Finally, In Environment Variable window User variables in Techno
    Click on Add button and provide below information
    Variable Name: JAVA_HOME
    Value: D:\Oracle\Middleware\jdk160_24
    Again Click on Add button and enter below details
    Variable Name: path
    Value: %path%;D:\Oracle\Middleware\jdk160_24\bin;D:\Oracle\Middleware\jre160_24\bin
    Again Click on Add button and enter below details
    Variable Name: ODI_JAVA_HOME (same jdk location should provide in odiparam.bat file in ODI_HOME\oracledi\agent\bin location)
    Value: D:\Oracle\Middleware\jdk160_24
    Note: Better Don't gove jdk path from D:\OdiHome\rcu\rcuHome\jdk\bin. Please give jdk path from Drive:\Oracle\Middleware\jdk160_24 (*eg: D:\Oracle\Middleware\jdk160_24*) for more details see below URL
    URL: http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
    Regards,
    Phanikanth
    Edited by: Phanikanth on Dec 25, 2011 11:48 PM
    Edited by: Phanikanth on Dec 25, 2011 11:49 PM

  • How to give the reference to the path  to copy the file to the server?

    hi all
    i am developing a page in jsp , in which i will open tiff image or autocad drawing,
    i get a file from one CMS, through JSP i login into CMS and get the file reference, till that i am successfull.
    but after that to open a file i have to copy that file into local pc or to the server(where my jsp page runs) and then try to open it.
    could any one know how to give the reference to the path if i have to copy the file to the server or my Local PC from CMS.
    Regards
    Oersla Afroze Ahmed

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • HT204093 I am following the instructions to hyperlink URL to an image in an email, but once I paste the URL, the "ok" button is not highlighted so I cannot complete the task. What is the problem and how do I get around it?

    I am following the instructions to hyperlink URL to an image in an email, but once I paste the URL, the "ok" button is not highlighted so I cannot complete the task. What is the problem and how do I get around it?

    I figured out if I took the http:// off the front of the URL, the "ok" button would highlight, but then link did not work. I tried just linking www.google.com to the image and the link did not work either. What gives?!

  • How to move up within a URL path?

    Recently started using URLs in my programs. Works great. However, all the
    time I have been wondering how to move up in that URL path. For example,
    if my url1=("http://www.something.com/") I normally end up at the index.html.
    But how could one set up a relative url reaching a file or directory at the same
    level as that index.html? I suppose one should go up onel level and then
    specify the name of the required file.
    I tried to use things like url2= new URL(url1,"../myfile") but that doesn't seem
    to work.
    Anybody has an idea? Thanks in advance.
    Dirk

    martin@work wrote:
    Hi,
    you can't, if your web server provides the minimum of security. In the web server configuration you normally map a base url to a physical directory on the server and the web server does its very best to assure that you can only access files in that physical directory and below, and that all other files on the server in any upper or parallel directories are not accessible.
    If you want to access files in a parallel directory then you have to create a further mapping in the web server which maps another base URL to that directory.
    Martin To reinforce what Martin says: if you cannot do this with your web browser, don't expect to do it with Java.
    On the other hand, if you can do it in your web browser, we misunderstood your question and please
    reformulate it using actual URL's (or at least the portion following the host name).
    Edited by: baftos on Apr 25, 2008 9:28 AM

  • How to hide the URL path on click of an link to URL element,from user

    Hi All,
          I have an link to URL element, on click of the link it opens the specified url in a new window. But in new window the user is able to see the entire URL path. I want to hide this path from the user. Can any one please suggest me how to do it.
    Regards,
    lakshmi.

    hi,
    just check this help
    http://help.sap.com/saphelp_nwce10/helpdata/en/f7/f289c67c759a41b570890c62a03519/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/fdc99ab37a8d42892e0d39bbd23be8/frameset.htm
    Link to URL Question

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • How to get the path of the image stored in sap??

    Hi All
    The problem is
    While making an entry in standard there is a field called documents through which we attach our images in sap.
    How to get the path of the image stored with the corresponding order so that the image can be displayed while we are creating a report.
    I know how to upload the image while creating a report using docking control.
    I am not able to get the path of the image stored...
    Please Help
    Thanks in advance..
    Pooja

    I am not aware of exactly which tables are used for storing the attached doc. details, but we have worked in the similar requiremnent.
    What you can do is .... before uploading the image to any order, try swich on the SQL trace ST05 and after upload switch off.
    The log will display what are the tables involved while storing the image. And you can easily find out the image location.

  • How to change the path of sysprep files that were copied to reference computer when i capture the image from reference.

    Dears ,,
    how to change the path that sysprep were copied to reference computer when i capture the image from reference.
    Should i modify some codes in LTIAPPLY.wsf? how to modify it?
    Thanks.

    Sysprep and capture has *Three* steps.
    1. Run sysprep on the local machine (easy).
    2. Copy WinPE down to the local machine so we can reboot into winpe for capture.
    3. Capture the drive in an *offline* state from within WinPE.
    What is most likely happening is that you are having problems with step #2. 100MB is *WAY* too small to copy down WinPE. By default MDT will make this System partition much bigger, 499MB. IF you install Windows 7 from the default media. IT will only create
    a 100MB partition.
    By default MDT 2012 Update 1 and greater *should* recover to a fallback drive with the OS on it, however if you are running older versions that might not happen correctly.
    If you are still having problems, copy your BDD.log file to a public share like OneDrive and copy the link here.
    Keith Garner - keithga.wordpress.com

Maybe you are looking for

  • Questionnaires shipped in Oracle HRMS

    My requirement is to have a set of questions related to health in the form of a questionnaire . Employee needs to provide a Yes/No answer for each of the questions and submit it through self service. My initial thought was to have it in a descriptive

  • Having Refresh problems with one machine

    Does anyone know what this would be. When I observe computers, one machine on the local network does not refresh, like all the others. You can really see the differenc in refresh between the other machines and this one. This one seems to stand still.

  • Why won't my new iPhone 4 play most of my music?

    I just got my phone last week and now most of my music isn't playing when it says it is?

  • EXPORT FILE에서 TABLE 생성 SCRIPT를 만드는 방법

    제품 : ORACLE SERVER 작성날짜 : 2002-04-08 EXPORT FILE에서 TABLE SCRIPT를 만드는 방법 ========================================== PURPOSE 다음은 EXPORT FILE에서 TABLE을 생성하는 SCRIPT를 만드는 내용이다. Explanation $ strings EXPDAT.DMP | grep 'CREATE TABLE' >> tables.sql Reference

  • Panasonic GH2 Raw hot spots/dead pixels trouble

    Hi, Like explaining in this link , I have bright green spots on my picture in Lightroom. My old camera Panasonic G1 didn't have this problem. How these spots is removed by Adobe raw processing ? Is it a problem with the raw file from my camera (somet