How to get the path of the image stored in DMS

Hi everyone..
My question is that I have attached an image with an order through transaction jha2n..
Now my requirement is to get the image in report..
I know the Logical id in ISM_l_ord class and physical id in ISM_P_Ord class.
I know that link between image and order is in SKWG_BREL.
But i am not able to get the path so that i can show the image in docking control.
pls help to retrive the path of the image stored...
Thanks
Pooja

EpicMaster wrote:Now the problem is when I run the application through the .jar file in the dist/ directory the images simply wont load...
..lblProduct.setIcon(new ImageIcon("Resources.zip/res/Product.png"));
Now the problem is when I Build&Clean the whole project which creates a /dist directory containing the complied and execulatble .Jar file for the application AND a folder called "lib" which contains the Resource.Zip folderThe String based constructor to ImageIcon presumes the String represents a File path. File objects do not work with resources inside Jar or Zip archives, for those, you need an URL. Gain the URL using something like..
URL urlToImage = this.getClass().getResource("/res/Product.png");

Similar Messages

  • How to get file path in the form \\filer01\dir\index.htm

    Hi,
    after selecting a file using the FileChooser dialog, i would like to convert the file path like "H:\index.htm" into a form like "\\filer01\dir\index.htm".
    On my system, the logical device name H:\ is mapped to a directory on a file server "filer01".
    Is there any possibility to do this conversion?
    Thanks in advance.

    hi,
    i dont think java has a way of figuring out the actual mappings for a drive, you can retrive all drives that are present using the following code
    File [] roots = File.listRoots();
    then you could just iterate through the roots some of which may be mapped (but you cant figure out which is mapped and which is not).
    So i guess the best way to do it is to have a Properties file with key,value mappings. for eg
    h:\\, \\file01\dir\..
    and then read the value from the Properties file, now if you want this for accessing a resource across the network you dont require to get the actual mapping, you can still use the mapped drive as you would use a unmapped drive.
    hope this helpz
    cheerz
    ynkrish

  • 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 get the Path of the Current File using Import & Export File -Reg.

    Dear all,
    I have a mega (big) doubt. I have manually inserted the Figures from the figure folders. Now i need, fully automated. So How can I get the Figure path
    Example :
    PMString path = "E://development/Figures/";
    now i checked, How many subFolders is there in "path", get the All Subfolders and check to the Article Name.
    Example
    Article Name == subFolder name then get the Files from the SubFolders(E://development/Figures/ChapterF/*.eps files").
    now I paste the Document using to For Loop.
    Please any one can suggest me, How can We get the Path in SDK.
    Note:
    Should I have to create the relative path by myself?
    No method supplied in SDK to do this directly?
    Please I need a help of this Query as soon as posible.
    Thanks & Regards
    T.R.Harihara SudhaN

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • How to get the Path of the WebDynpro page

    Hi All,
    Can any one say how to get the path of the JSPDynPage ina Portlet in Portal Application.
    Becoz i have to display that Page in another JSPDynPagee
    Thanks in Advance....

    Hi,
    You can call your JSPDynPage component by calling the URL as:
    http://localhost:50000/irj/servlet/prt/portal/prtroot/YourApplicationName.YourComponentName
    Check this:
    Calling portal component
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How do i get the path of the file selected for opening in JFileChooser

    hi
    I need to get the path of the file selected for opening or saving in the JFileChooser dialog box.Is there any method available.if not how do i get that?
    Thanks and Regards
    Saminathan.

    don't know if its the best/only way, but you could use the getSelectedFile() method in JFileChooser which returns a file and then use the getAbsolutePath() file method

  • How to get absolute path of a form within the Forms

    Aslam o Alikum (Hi)
    How to get absolute path of a form within the Forms 6i or 9i
    For example
    i am running a from "abc.fmx" from C:\myfolder directory
    can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"

    There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
    I already have some code to do all this for you see:
    http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt

  • How to add image in PDF using JspDyn and what is the path to keep images

    Hi anyone help me out to get this issue solved...
    I'm creating PDF on the fly but I'm unable to get the image in it. It says Invalid path if i give the path like this  Image image =new Image(     request.getWebResourcePath() + /images/MyLogo.gif","picture Mylogo.gif");
    And also I have tried like this
    com.lowagie.text.Image img =                    com.lowagie.text.Image.getInstance("MyLogo.gif");          document.add(img);
    I have  kept the image in /images folder.
    Still i'm facing path problem....
    Please guide me to resolve this issue..
    Regards,
    Joseph

    Hi Joseph,
    Your images will be stored under..
    NWDS path :
    dist/images/your_image.gif
    Server path:
    E:\usr\sap\DP4\JC04\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\your_par_name\images\your_image.gif
    you can access the image from this server path..
    ->
    request.getPrivateResourcePath() will give you the path upto ..
    E:
    usr
    sap
    DP4
    JC04
    j2ee
    cluster
    server0
    apps
    sap.com
    irj\servlet_jsp
    irj
    root
    WEB-INF
    portal
    portalapps\
    come back 2 directories back upto..
    root\your_par_name\your_image_name
    Try this and let me know.
    Hope it helps.
    Regards,
    Karthick

  • Difficult: Drag and Drop: how to get the path of the drag-source ??

    I have to write an applet, after a "Drag&Drop"-Operation from a MS-Word-document to this applet, the applet is supposed to show the path of the document.
    Does anyone know how to do this ?
    thanks

    http://forum.java.sun.com/thread.jsp?forum=4&thread=300727

  • How to get the path of the web-archive on the local filesystem?? [Apache]

    Hello all,
    Im running a webapplication on a tomcat server.
    I need to find out the path of the web-archive on the local filesystem to access several files.
    How can I do that with out having an instance of HttpRequest or whatever??

    Hello Bruce.
    Please take a look at the following KBase article.  It has a sample that will retrieve the folder structure for a specified Crystal Report template based on the instance name in the file store.  The sample there can be easily modified so that it is based on a specific infoObject id.
    1549728 - How to find the folder structure in the CMC of a report template based on the instance file name in the output file store.
    The KBase can be retrieve from the following link:
    https://bosap-support.wdf.sap.corp/sap/support/notes/1549728
    Please note that the KBase article is retrieved through the Service MarketPlace.
    I hope this helps.
    Regards.
    - Robert

  • How to get the path of the cache directory ?

    Hi everyone,
    I need to get the path of the cache directory to copy files into it (these files are security files that are necessary to encrypt data).
    Maybe there is a jnlp.jar to have object that implements a method getCachePath() ? But I can't find it.
    Any ideas ?. thanks.

    you can find the cache location by finding the location of the jar file you are running from:
    URL resource =
    this.getClass().getClassLoader().getResource("testResource");
    if (resource != null) {
    String s = resource.toString();
    if (s.startsWith("jar:")) {
    int index = s.indexOf("!");
    if (index > 4) {
    String fileurl = s.substring(4,index);
    if (fileurl.startswith("file:")) {
    String path = fileurl.substring(5);
    // now path is the path to the jar file in the cache containing the resource
    /Dietz

  • How to get a snapshot of the first frame inside application.onPublish?

    Hi there!
    application.onPublish = function (client, p_stream)
        //How to get a snapshot of the first frame and save it to a specified directory?
        //Or post the snapshot image to a specified URI for restoring?
    Anyone knows how to do this ?
    Regards!

    This can be accomplished 2 ways that i know of ffmpeg and PHP with the php way flash takes a snapshot of the videoframe and then sends it PHP to be saved as a jpeg....with the ffmpeg way you simply batch process the entire directory holding the flv wich is external to flash although this can also be automated using PHP........I can send you a package containing both methods but installation will be up to you.............unless you wanted to pay me to help. I'm busy and can't do probono work right now.

  • How to retrieve the path and the name of the destination file in a link annotation

    Hi,
    In C++:
    How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
    Sample of my code:
    //Determine if the annotation is a Link annotation
    if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
    //Determine if the action is a Launch action
    if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
    // What is the method ?
    Regards
    David G

    In general, get the annotation as a Cos object and examine it, in
    accordance with the PDF Reference.
    Aandi Inston

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • I deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx

    i deleted most visited, latest headlines, getting started, yahoo, youtube, apple in mozilla's folder,how to get it back like the first time i installed? thx

    if you hid the menu bar and the navigation bar simply press the alt button, this will bring back the menu bar and form there you can right click and select which bars you want shown

Maybe you are looking for

  • TIMEOUT issue

    Hello Friends, we have been using IXOS as document storage and encoutered a strange timeout /ABAP DUMP issue as below . The termination occurred in the ABAP program "/IXOS/DRPO_CL_MAIN============CP" in "WAIT_UNTIL_DATA_IN_DB". The main program was "

  • SRM Shopping Cart Problem in coding.please help

    Hi SAPGURUS, Please help me with this code,its fetching me no result in SRM for these conditions.This code is not changing anything and not giving the desired result. I am using BBP_DOC_SAVE_BADI Please see the doc for CONDITIONS [http://www.2shared.

  • How can I download 4.0 version for iPad 2?

    I recently downloaded the new version iOS5 for iPad unknowinlgy that it would not support the lyrics function in the new fangled and utterly useless 'Music'.  This had made my professional work as a gigging musician ****! All my lyrics and playlists

  • Is it possible to attach a JDev debug process to a r2 instance?

    Is it possible to attach a JDev debug process to a r2 instance, like I can do with a stand alone OC4J instance?

  • Do i need to use a string tokenizer here?

    I am doing a program that reads a text file and write it to another new file. Before, writing out the required text lines to a new file, the program should be able to extract certain words from the text file that had been read and the user can able t