Dynamic Import File Path

Hi All,
Please help me how to do dynamic import file path since we have multiple environment where our reports will be migrated.
Thanks

Hi,
the link is helpful but it still throws an error from my end . . .
I set the xdo.cfg to
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="xslt.FILE_LOCATION">D:\OraHome_1\xmlp\XMLP\Reports\Reports</property>
</properties>
</config>
and my import file is
<?import:file://${FILE_LOCATION}/Global_Logo/Global_Logo.rtf?>
<?import:file://${FILE_LOCATION}/Highlights/Highlights.rtf?>
<?import:file://${FILE_LOCATION}/Benefit/Benefit.rtf?>
in my main template it calls 3 sub templates . . .
even I put a single quote in the 'D:\OraHome_1\xmlp\XMLP\Reports\Reports' in the xdo.cfg, I still get the error
     at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
     at RTF2PDF.runRTFto(RTF2PDF.java:629)
     at RTF2PDF.runXDO(RTF2PDF.java:439)
     at RTF2PDF.main(RTF2PDF.java:289)
Caused by: java.net.UnknownHostException: ${FILE_LOCATION}
     at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
     at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
     ... 14 more
Thanks,

Similar Messages

  • Dynamic Save File Path

    Hey Everyone,
    So I deal with a lot of files each day that need to be saved according to their lead code, meaning that there is a folder that holds thousands of sub folders that have the same name as this lead code on a server.
    So since I have the lead code in the file name I'm trying to use that in conjunction with the file path to tell illustrator where to save it with Javascript. Also the idea of a dynamic save path is awesome to me.
    Here's what I've got so far, it's not working yet but I feel like I'm close.
    Dynamic Save Path////////////////////////////////////////////////////////////////////////////////
    #target illustrator
    var sourceDoc = app.activeDocument;
    var sourceName =sourceDoc.name;
    var customerNum = sourceName.substring(0, sourceName.length - 8)
        customerNum
        sourceName = sourceName.substring(0, sourceName.length - 3)
    //alert(sourceName)
    alert(customerNum + " Customer # saved")
    alert(sourceName + " File name saved") //end
    var doc = app.activeDocument;
    var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
    var substituir_Path = doc_Path+ "/" + customerNum;
    //alert("sourceName: "+sourceName+"\nsourceDoc_Path: "+doc_Path+"\nsubstituir_Path: "+substituir_Path);
    function SaveFileAsFXG (dest) {
        if ( app.documents.length > 0 ) {
            var saveOptions = new FXGSaveOptions();
            var fxgDoc = new File(dest);
            app.activeDocument.saveAs( fxgDoc, saveOptions );
    var destFilePath = substituir_Path;
    SaveFileAsFXG (destFilePath);
    alert("done!") //end

    I figured it out, I had it removing too many characters. I can get away with hardcoding this in my script because of how we name files where I work. also I realized I had a left over part in there that I didn't need.
    I also got rid of the dividers to make it easeir to read here online
    #target illustrator
    var sourceDoc = app.activeDocument;
    var sourceName =sourceDoc.name;
    var customerNum = sourceName.substring(0, sourceName.length - 7)
        customerNum
        sourceName = sourceName.substring(0, sourceName.length - 3)
    alert(customerNum + " Customer # saved")
    alert(sourceName + " File name saved") //end
    var doc = app.activeDocument;
    var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
    function SaveFileAsFXG (dest) {
        if ( app.documents.length > 0 ) {
            var saveOptions = new FXGSaveOptions();
            var fxgDoc = new File(dest);
            app.activeDocument.saveAs( fxgDoc, saveOptions );
    SaveFileAsFXG (doc_Path);
    alert("done!") //end

  • Create a dynamic physical file path in FILE tcode

    Hi ,
    I have a requirement where i need to create a file on application server. the physical path depend on the month in which it is executing.
    For example I have a file with the name 29082011_hh:mm:ss.dat.
    This file should be stored in the directory file015\FI\appl\Aug\.
    So i require to create the logical file path as file15\Fi\appl\<month>\<filename>
    My question is do we need to maintain the folders for all the months in AL11 or it can be generated at runtime
    Plz reply

    You must create the directories beforehand.

  • How to create dynamic source file path for lumira?

    i have source file for lumira  visualization on  D:\lumira\SourceFiles\sample.xlsx;
    also .lums file in D:\lumira\demo.lums
    But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the data.So please suggest me how can i use this file so that i don't need to create a new connection again and i should get the updated data i.e. the data should change according to the change in the datasource file.

    Hi,
    this isn't possible.
    you need to go the Connections window in Lumira home page, and repoint the connection to the new location
    regards,
    H

  • Dynamic file path problem....

    Hello & thanks for your attention
    I am trying to modify the action script(2) of a XML photo slideshow
    I want to make it pull the photo array from a dynamic XML file
    Yet nothing I try seems to be working - I was hoping someone could look at these snippets and tell me if I'm doing something incorrectly
    Objective:
    To make the swf file - pull its photo array - from a dynamic XML file path
    Scenario:
    http://www.reallivingtours.com/tours/viewTour.php?id=2092
    When that URL is called by a browser
    An XML file called 2092.xml is created in a /tmp/ directory
    viewTour.php passes the ‘dynamic’ file path to the swf via the params
    <param name="movie" value="slideshow.swf?file=tmp/<?php echo $tourID; ?>.xml">
    <param name="flashvars" value="&file=tmp/<?php echo $tourID; ?>.xml">
    The original AS2:
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load("settings.xml") : xml.load(_root.xmlPath);
    The modified AS2 - I've done:
    var filePath:String = new String();
    filePath =_root.file;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load(new URLRequest(filePath)) : xml.load(_root.xmlPath);
    Can you see anything I'm doing incorrectly?
    Thank you very much for your time and attention
    Benn

    Thanks to webqa - I've gotten a little closer to resolving this
    my debugging tells me that i have an undefined error
    I'm thinking - xml.load(filePath)
    is not recognizing the string as a file path to the XML
    Does anyone have any suggestions? thank you
    var filePath:String = new String();
    filePath =_root.file;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load(filePath) : xml.load(_root.xmlPath);

  • Saving file paths (like a bookmark gets saved?)

    i seem to be doing a lot of restoring of data (for instance i had to restore my notes recently) and i am realizing that it would be uber helpful to be able to save file paths. right now i highlight the folder that i need, then i hightlight the one above it and then again the one above that until i get to the library level where i will see it easily.
    is there some utility of function that would let me save all my important file paths instead of having to do this/
    TIA

    You would want to create aliases for your file paths. right click the folder choose create alias, then drag all the aliases into a new folder you titled Paths. drag the paths folder into your sidebar.
    Another option is to keep your file paths in notes or whatever text editor you choose.
    then copy and paste them into the "go" field
    when in finder hit shift+cmd+G and the GO menu should pop up.
    paste the file path from your notes into that field and you're there instantly.

  • Using a dynamic file path with the import command

    In one of the BI Publisher blog entries it was mentioned that the curly braces tell the parser that it needs to evaluate this value first before executing the import statement. The example provided was using the built-in parameter CURRENT_SERVER_URL, but it also mentioned that this could be done with any parameter.
    I am trying to import a subtemplate using a parameter that will hold the relative path. I am using the following import command in my report template:
    <?import:file:///{$P_SERVERPATH}/Report Path/Subtemplate.rtf?>
    as well as the following declaration statement:
    <?param@begin:P_SERVERPATH?>
    It appears that the P_SERVERPATH parameter is not being evaluated before the import statement. Am I missing anything?
    Any help is greatly appreciated, we are a little over a week from migrating to a new environment and I need to nail down a solution ASAP.
    Thanks,
    John

    I believe that you cannot have a dynamic path in the import statement as it is not allowed by xsl.

  • How to set dynamic file path in LSMW

    I am working on LSMW  object to upload say excel file from my desktop.. if someone runs my lsmw application on their system obviously it fails.. is there way where I can dynamically set the path..I mean whomsoever runs the application it picks the file from their location and execute the program.

    hi,,,
    change your code accordingly
    here i am  inserting data into ztable from excel .
    *& Report  ZBI_UPLOAD_DATA_MAST                                             *
    REPORT  zbi_upload_data_mast                        .
    DATA : it_tab TYPE filetable,
           gd_subrc TYPE i.
    TYPES : BEGIN OF wa_wrkctr,
            fictr TYPE zbi_fictr_mast-fictr,
            prctr TYPE zbi_fictr_mast-prctr,
            type TYPE zbi_fictr_mast-type,
            END OF wa_wrkctr.
    DATA : wa_save TYPE zbi_fictr_mast.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA : it_datatab TYPE STANDARD TABLE OF wa_wrkctr WITH HEADER LINE INITIAL SIZE 0.
          it_phy_data TYPE STANDARD TABLE OF wa_energy WITH HEADER LINE INITIAL SIZE 0.
    *data : w_current_inv_no(5) TYPE n,
          w_pop_up_text LIKE  wfcsr_ui_popup_text.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename OBLIGATORY
                 DEFAULT 'C:\Physical Stock.xls'  .
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Select File Name'
          default_extension       = '*.xls'
          default_filename        = '*.xls'
          file_filter             = '*.xls'
          initial_directory       = 'c:\'
       MULTISELECTION          =
       WITH_ENCODING           =
        CHANGING
          file_table              = it_tab
          rc                      = gd_subrc.
       USER_ACTION             =
       FILE_ENCODING           =
    EXCEPTIONS
       FILE_OPEN_DIALOG_FAILED = 1
       CNTL_ERROR              = 2
       ERROR_NO_GUI            = 3
       NOT_SUPPORTED_BY_GUI    = 4
       others                  = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        READ TABLE it_tab INTO p_file INDEX 1.
      ENDIF.
    START-OF-SELECTION.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    PERFORM eventtab_build CHANGING lt_eventtab.
    PERFORM display_data.
    *&      Form  UPLOAD_EXCEL_FILE
          text
         -->P_IT_DATATAB  text
         -->P_P_FILE  text
         -->P_GD_SCOL  text
         -->P_GD_SROW  text
         -->P_GD_ECOL  text
         -->P_GD_EROW  text
    FORM upload_excel_file  TABLES   p_it_datatab
                            USING    p_file
                                     p_scol
                                     p_srow
                                     p_ecol
                                     p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    Has the following format:
                Row number   | Colum Number   |   Value
         i.e.     1                 1             Name1
                  2                 1             Joe
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
    Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = lt_intern
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
          MOVE lt_intern-col TO ld_index.
          ASSIGN COMPONENT ld_index OF STRUCTURE it_datatab TO <fs>.
          MOVE lt_intern-value TO <fs>.
          AT END OF row.
            APPEND it_datatab.
            CLEAR it_datatab.
          ENDAT.
        ENDLOOP.
      ENDIF.
      IF it_datatab[] IS NOT INITIAL.
        DELETE FROM zbi_fictr_mast.
        COMMIT WORK.
        LOOP AT it_datatab.
          wa_save-fictr = it_datatab-fictr.
          wa_save-prctr = it_datatab-prctr.
          wa_save-type  = it_datatab-type.
          INSERT INTO zbi_fictr_mast VALUES wa_save.
          IF sy-subrc = 0.
            COMMIT WORK.
            MESSAGE 'Data upload complete' TYPE 'S'.
          ENDIF.
          CLEAR wa_save.
          CLEAR it_datatab.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " UPLOAD_EXCEL_FILE
    i hope this will help .
    Regards
    Deepak

  • 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 images dynamically from database without file paths in the table field

    I have a MS-Access database. I am working with ASP.NET. In the database there is product table in which I have "CodeNo" as a field which is a text field, and the product codes like "SM-R-2035". I also have another field "Image" which is also a text field and which have a file path in it corresponding to the particular product Image (e.g. Images\Products\SM-R-2035.jpg). So far every thing is ok. I have to update this site very frequently and lots of images are added each and every time. Its a tedious work to type the paths and file name every time and it also take a lot of time.
    What I am asking is : Is it possible to get images from a specific folder at runtime which is referenced by the "code no" itself and not the file path from the database. (Say at run time the "code no" is referenced from the database and the corresponding image is loaded dynamically from the specified folder). In other word I want to avoid the tedious work of typing.
    Can any one help with this issue. Any other simple suggestions are welcome.

    All you need to do is simple concatenation to obtain the path for the image file.  You didn't mention whether you are using VB.Net, C# or some other language to do your coding.
    If the code in your database is SM-R-2035, the file name is SM-R-2035.jpg and the path to the images foilder is Images\Products\SM-R-2035.jpg, Conceptually here is what you need to do:
    dim code_var
    dim path_var
    code_var = the code you obtain from your relevant field in the database
    path_var = "Images\Products\" & code_var & ".jpg"
    Now path_var is what you would call to obtain the image from your images folder.

  • File path lost while importing to RoboHelp

    Hi
    I am using FM11 and RH10 as part of TCS4.
    I have inserted an image in FrameMaker which has the file path Interactivities\First Interactivity\tab1.swf (shown in the screenshot).
    When I import to RoboHelp the path is lost.
    This is generally not an issue as the file gets imported and published as well.
    But in my case, I have three different SWFs named, tab1.swf, tab2,swf, and tab3.swf in three folders First Interactivity, Second Interactivity, and Third Interactivity respectively. The content of all three SWF files are being called from an XML file, which has the same name of tabs.xml. Now, when we publish the RoboHelp file, since all the three SWFs get copied/published to the single folder, that throws all my calls to the XML out of gear.
    So, is there a way I can retain the file path when the file is imported?
    Thanks in advance for your help.
    Sreekanth

    Sorry, bad choice of words there from my side.
    I have a Tab interactivity in SWF fomat. The framework of this is created in Flash in which we are calling the content from XML file. Here is the screenshot of the SWF when the XML file is missing:
    Now, when I place the XML file in the required folder, it looks like this:
    In your case, you place the Captivate file which is not dependent on other files. That is why you get it right. It is something like inserting an image.
    Sreekanth

  • Backup DB with dynamic sql - want to substitute in dbname and disk file path

    Re: Backup DB with dynamic sql - want to substitute in dbname and disk file path
    Hope I can explain this. Below is a small snippet of code. I want to set @SQLTemplate_TSQL once at the top of the script and then execute the SET @SQLCommand and sp_executesql in a loop that reads a list of databases. It all works, except for the
    BACKUP DATABASE. Right now it evaluates when the SET @SQLTemplate_TSQL is evaluated. I want it to evaluate when it is executed. I want the DB_NAME() of the USE @dbname.
    -- change @dbname and @dbbackuppath
    DECLARE @SQLCommand NVARCHAR(MAX)
    DECLARE @SQLTemplate_TSQL NVARCHAR(MAX)
    DECLARE @dbname varchar(128) = 'Bank04'
    -- one time setting of @SQLTemplate_TSQL
    set @SQLTemplate_TSQL =
    DECLARE @dbbackuppath varchar(128) = ''''d:\backups''''
    IF RIGHT(@dbbackuppath, 1) <> ''''\''''
    SET @dbbackuppath = @dbbackuppath + ''''\''''
    SET @dbbackuppath = @dbbackuppath + DB_Name() + ''''.bak''''
    PRINT @dbbackuppath
    BACKUP DATABASE ' + DB_NAME() + ' to DISK=''' + QUOTENAME(@dbbackuppath, CHAR(39)) + '''
    -- Execute this several times over different databases
    SET @SQLCommand = '
    USE ' + QUOTENAME(@dbname) + ';
    EXEC(''' + @SQLTemplate_TSQL + ''') '
    PRINT @SQLCommand
    EXECUTE sp_executesql @SQLCommand

    Here is a stripped down version of my code. Someone writes a script. I then take the script and seperate it by GO statement block. Each GO block gets its own row into the
    #SQLTemplate_TSQL. I then replace single quote with 4 quotes and run it. Then I run against my list of databases. I am unable to get the BACKUP DATA base to work with this model.
    Run scripts against multiple databases.sql
    Do a FIND on "CHANGE THIS" to see the databases returned from the SELECT statement
    DECLARE @DatabaseName varchar(128)
    DECLARE @SQLCommand NVARCHAR(MAX)
    DECLARE @SQLTemplate_Seq INT
    DECLARE @SQLTemplate_OperationDesc NVARCHAR(128)
    DECLARE @SQLTemplate_TSQL NVARCHAR(MAX)
    DECLARE @SQLTemplate_Diagnostics INT
    DECLARE @Note VARCHAR(500)
    IF OBJECT_ID('tempdb..#SQLTemplate_TSQL') IS NOT NULL
    DROP TABLE #SQLTemplate_TSQL
    CREATE TABLE [dbo].[#SQLTemplate_TSQL](
    [SQLTemplate_RecID] [int] Identity,
    [SQLTemplate_ID] [int] NOT NULL,
    [SQLTemplate_Seq] [int] NOT NULL,
    [SQLTemplate_OperationDesc] [varchar](128) NOT NULL,
    [SQLTemplate_TSQL] [varchar](max) NOT NULL,
    [SQLTemplate_Diagnostics] [int] NOT NULL,
    [SQLTemplate_Enabled] [int] NOT NULL)
    DELETE FROM #SQLTemplate_TSQL WHERE SQLTemplate_Seq = 65
    DECLARE @SeqID INT
    SELECT @SeqID = MAX(SQLTemplate_ID) FROM #SQLTemplate_TSQL
    SET @SeqID = ISNULL(@SeqID,0)
    SET @SeqID = @SeqID + 1
    INSERT INTO #SQLTemplate_TSQL VALUES(@SeqID ,65,@SeqID,'
    SELECT * FROM ifs_config
    ',1,1)
    SET @SeqID = @SeqID + 1
    INSERT INTO #SQLTemplate_TSQL VALUES(@SeqID ,65,@SeqID,'
    DECLARE @HistoryODS INT
    SET @HistoryODS = 1
    SELECT * FROM ifs_tablelist WHERE HistoryODS = @HistoryODS and Tablename like ''''%HIST%''''
    ',1,1)
    -- Setup Cursor to Loop through each of the Prior Period databases
    DECLARE db_cursor CURSOR FOR
    SELECT [Database Name] --<<<<<<<< CHANGE THIS SELECT statement to select DBs >>>>>>
    FROM v_ifs_PPODSDBInfo_Curr
    WHERE [Database Frequency] <> 'CURRENT'
    ORDER BY [Database Frequency], [Database Number]
    OPEN db_cursor
    FETCH NEXT FROM db_cursor INTO @DatabaseName
    -- Loop through each of the databases
    WHILE @@FETCH_STATUS = 0
    BEGIN
    -- Setup Cursor to Loop through each of the SQL Statements
    DECLARE #SQLTemplate_TSQL_cursor CURSOR FOR
    SELECT [SQLTemplate_TSQL], [SQLTemplate_OperationDesc], [SQLTemplate_Seq], [SQLTemplate_Diagnostics]
    FROM #SQLTemplate_TSQL
    WHERE [SQLTemplate_Enabled] = 1 AND SQLTemplate_Seq = 65
    ORDER BY SQLTemplate_ID
    OPEN #SQLTemplate_TSQL_cursor
    FETCH NEXT FROM #SQLTemplate_TSQL_cursor INTO @SQLTemplate_TSQL, @SQLTemplate_OperationDesc, @SQLTemplate_Seq, @SQLTemplate_Diagnostics
    -- Loop through each of the SQL statements
    WHILE @@FETCH_STATUS = 0
    BEGIN
    SET @SQLCommand = '
    USE ' + QUOTENAME(@Databasename) + ';
    EXEC(''' + @SQLTemplate_TSQL + ''') '
    EXECUTE sp_executesql @SQLCommand
    FETCH NEXT FROM #SQLTemplate_TSQL_cursor INTO @SQLTemplate_TSQL, @SQLTemplate_OperationDesc, @SQLTemplate_Seq, @SQLTemplate_Diagnostics
    END
    CLOSE #SQLTemplate_TSQL_cursor
    DEALLOCATE #SQLTemplate_TSQL_cursor
    FETCH NEXT FROM db_cursor INTO @DatabaseName
    END
    CLOSE db_cursor
    DEALLOCATE db_cursor

  • Rendering images dynamically from file server path

    Hi,
    We are having JDeveloper 11.1.2.4
    We have following requirement - Image files are located on server. File locations (path and name) are stored in database table.
    We need to dynamically access file locations from database table, access file from server and render it in ADF image component.
    Is it possible? If yes, we would really appreciate some pointers/help on how to achieve it.
    Please note that we are able to render images dynamically when they are stored in database BLOB column. We can do that using a ImageServlet class. In doGet() method, we are fetching the database BLOB column based on current row id.
    Thanks,
    Vivek

    Here is the scriplet I tried. But it is not redering the image and definitely I am missing something here. Please suggest changes or any direction.
    <%
    File f = image.getThumbnailFile(); //image file from a bean
    ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
    InputStream inputStream = new FileInputStream(f);
    byte[] bytes = new byte[1024];
    int read;
    try{
              while ( (read = inputStream.read(bytes)) > -1 )
                      byteOutput.write(bytes, 0, read);
              //byte[] ba = byteOutput.toByteArray();
              ByteArrayInputStream byteInput = new ByteArrayInputStream(byteOutput.toByteArray());
              response.setContentType("image/gif");                       
              while ( (read = byteInput.read()) > -1 )          
                   response.getOutputStream().write(read);
              response.getOutputStream().flush();
    catch(Exception e){}                           
    %>

  • Import from Ext. drive results in wrong file path

    I just bought and installed Photoshop Elements 8.
    Importing my pictures from internal drives occurs without any problems.
    However, when I import files from an external drive (E), the thumbnails appear but their path shows up as being on external drive (F).  At the same  time, a representation of the folders I imported from appears on the folder tree of drive F, but with grey instead of yellow folders.
    When I click on one of the thumbails, the program starts searching for a 'missing file.'
    No other software I own works like this. Both drives are in good working order -- online and not sleeping, and are freely accessible by other programs and file managers.
    Is this wrong parh issue a common problem?  Can it be fixed?

    Hi, I have the same problem of grayed folders. I did manually change the folders in Explorer and now have this problem of trying to reconnect the files with the image and have over 2000 files missing. Now I am getting the message to "reconnect or delete from catalog". Is there a way to reconnect with out searching for each and every file? Is it possible to remove these folders and "re-do" my import? Please help.
    I ran your utility and below are my findings:
    psedbtool version 1.08
    Opening catalog C:\ProgramData\Adobe\Elements Organizer\Catalogs\My Catalog\catalog.pse8db
    Photoshop Elements version:      8
    Total files               :   6629
    Total files missing       :   2171
    Total files offline       :      0
    Total files wrong volume  :      0
    ****** Volumes with warnings: 1
    PSE Volume Table
    Path used by PSE        :
    Type                    : no_drive
    Status                  :
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             :
    Serial                  : no drive
    Drive_path_if_builtin   :
    Id                      : 982
    Path used by PSE        : H:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 1552
    Total files missing     : 1552
    Total files wrong volume: 0
    Description             : H:
    Serial                  : 3EEA-E2AB
    Drive_path_if_builtin   : H:
    Id                      : 308
    ***** WARNING *****     : Drive in catalog missing
    Path used by PSE        : C:
    Type                    : builtin_drive
    Status                  : online
    Total files             : 5077
    Total files missing     : 619
    Total files wrong volume: 0
    Description             : C:
    Serial                  : 6A98-6A83
    Drive_path_if_builtin   : C:
    Id                      : 173
    Path used by PSE        : C:\ProgramData\Adobe\Elements Organizer\Catalogs\My Catalog
    Type                    : database_relative_drive
    Status                  : online
    Total files             : 0
    Total files missing     : 0
    Total files wrong volume: 0
    Description             : database relative
    Serial                  : amoc:database_relative_volume
    Drive_path_if_builtin   :
    Id                      : 2
    Windows Drives
    Drive  Type             Serial     Path
    A:     removable_drive  0000-0000 
    C:     builtin_drive    6A98-6A83 
    D:     readonly_drive   0188-7EC4 
    E:     builtin_drive    4890-C5F3 
    F:     builtin_drive    FCD3-1C6C

  • Imported web app image file path shows no picture

    I am trying to import a file path into the image (type) field of a web app, but the image does not appear on page. If I go into the web app item, do nothing but click 'update', the image will appear on page.
    I have tried importing using Auto-Detect, Comma delimited (CSV), and Tab delimited with the same result. I have exported the .CSV from Numbers (app), and tried copy/paste into TextEdit for Tab delimited. Text is UTF-8.
    Is there some trick to getting the import of a file path to work? Do I need to escape the "/" in the file path (ie.   /_assets/images/<filename>    to    \/_assets/images/<filename> )?

    As I am still testing this web app, I uploaded an image through dreamweaver, then went to the web app, clicked the 'select image' link next to the Image field, and continued to fill in the other info.
    Once that was done -- so I had one example web app item in the spreadsheet -- I exported the template, filled it in with additional data, and imported in the various ways described. I am only using the one image. http://mainedreamvacation.businesscatalyst.com/specials
    I get this image visible on page, I had to go in and update each web app item. Tedious for testing; impractical otherwise.
    Thanks for your help,
    Tim
    Graphics / Web Specialist
    Adventure Advertising
    29 Commercial Street
    Rockport, Maine 04856
    207-236-8049

Maybe you are looking for

  • Will a Trust Flat Scan USB 19200 Scanner work with my Macbook.

    I have an older white Macbook running OS 10.4.11. I have been offered a Trust Flat Scan USB 19200 Scanner in good working order and would like to know if it will work with my Macbook ? Hope that this is the correct section in which to ask, if not, ap

  • How to use Start Routine for this requirement

    Hello, I am having data in 2 ods and should load that data into cube, but there isn't any common object in both the ods's. I need to analyze based on these ods objects. so I thought of pulling some objects into 1ods which are used for analysis and ad

  • Updating iTunes to 7.5

    I know will sound like a stupid question...however, this is the first time I am updating itunes ever since I originally dowloaded itunes for my new ipod. So...since I wanted to update itunes I went to the apple site and it gave me the page where you

  • Charts again but this time multiplot X-Y

    For the life of me I can not figure out charts in Labview. I literally cringe every time I am asked to display a real time chart or graph of data. Anyway here is what I am tying to do. I need to plot several passes of data on one chart. I am using an

  • Java error when creating Auto Reply in iMS52&iDS51

    Hi, I have installed iDS51, patch with ims_dssetup.pl, installed iMS52. When creating user with a mail account and clicking on the Auto Reply tab, encounter java error: PageUI exception: java.lang.NullPointerException PageUI exception: java.lang.Null