Dynamic file request to appserver and static file request to webserver

Can we redirect dynamic file request to appserver and static file request to webserver in any application and
what are the best way to do it ?
Waiting for the best suggestions ?

when you have a large number of images/css/javascript/static(html/pdf/doc) files. It takes some of the processing load from your app server and also reduces the network traffic (otherwise traffic must flow between webserver and weblogic as well). it is also reasonably trivial to configure cache/modification/etags headers from a webserver and they are probably more featured than a weblogic server (e.g. to turn on gzip for static files dynamic is just a setting in the webserver but probably needs a custom filter developed in weblogic).
Again this applies if you already have a webserver (normally because your firewall policy dictates this approach). If you are considering whether to have a webserver at all then there are different considerations.
regards
deepak

Similar Messages

  • Not able to access files from Workspace Images and Static files

    Hi,
    We have just migrated our APEX Application from one server to another.
    All the functionality is working fine except the images or files which we are uploading
    in
    Shared Components -> Static Files
    Shared Components -> Images
    We are uloading Images in Shared Components -> Images but those are not getting displayed there.
    Similarly the files which we are uploaded in Shared Components -> Static Files are not accessible. If we
    try to download using download icon its showing blank screen.
    I am using some javascript files which i have uploaded into static files, but not able to refer them in page.
    Please someone guide us how to resolve the above problem.
    Thanks in advance.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on May 25, 2010 1:35 AM
    Edited by: user11204334 on May 25, 2010 3:45 AM

    Hello Sanjay,
    If you upload any static files such as IMAGES, FILES, or CSS you have to use the tags: #WORKSPACE_IMAGES# or #IMAGE_PREFIX# depending on your files location..
    then try something like htp.p ('<img src="#IMAGE_PREFIX#fileName.gif" />');
    And it should show the fileName.gif on your browser...
    I am not sure if i remember correctly, you can reference files to a specific application or to the whole application, if I am not mistaken..Correct me..
    Regards,
    Noel Alex Makumuli,
    Tanzania

  • CPS Simple File Deployer corrupts XLSX and DOCX files when copying to server. Solutions?

    When Contribute Publishing Service Simple File Deployment copies XLSX and DOCX files from our staging server to the live production web server, it is corrupting them.  The resulting file on the live web server is a few bytes different in size.  I published a 9015-byte docx file to our staging server using Dreamweaver (or Contribute).  The resulting file on the staging server opens correctly and remains 9015 bytes.  Then, using CPS Simple File Deployer, I deployed the file from our staging server to our live web server.  The resulting file on the live web server is 9017 bytes, and it won't open.  Something similar happens with XLSX files.  It works fine with XLS, DOC, Html etc.  Well, there is an issue with dependent files unless I synchronize with Dreamweaver, but that's another story.
    Once File Deployer has corrupted the files, opening them brings a message, such as "Excel has found unreadable content in filename.xlsx. . . ".  With Word, it says "The Office Open XML file filename.docx cannot be opened because there are problems with the contents . . . The file is corrupt and cannot be opened."  Sometimes the docx files can be recovered, but that doesn't help. 
    When I take the same original docx file and put it on the web server with an FTP program, it remains 9015 bytes and opens successfully on the live web server.
    For several reasons, such as many users updating the website with Adobe Contribute and not let them use FTP directly to the live server, we need to keep the staging server and use File Deployer (or something) to deploy the changed files from the staging server to the live website.
    I read somewhere that the programming code the uploads files can have problems and fail to work properly with Office 2007 files.  I don't have access to CPS's core.ctc and deployfile.cfc files, and I don't have Cold Fusion. 
    Any suggestions?
    Dean

    Try: 
    Open My Computer.
    Open the Tools menu and choose Folder Options...
    Select the File Types tab.
    Select the extension (for example DOC, or XLS) of the file that is slow to open.
    In the Details section, click [Advanced], and another dialog box will open. 
    In the Actions section, click Open then click [Edit...], and another dialog box will open.
    http://windowssecrets.com/forums/showthread.php/149672-10-9-2012-Updates-and-very-slow-opening-of-Office-files
    KR

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Trying to down load a file that contains .exe and .bin files on Unity(gaming builder)

    Trying to down load a file that contains .exe and .bin files on Unity(gaming builder). can this be done on iMac. it is a video game? It works fine in windows computer? dont know if this limited information helps. Is there a program or something i need to buy or download? Thanks

    Hello,
    .exe files are Windows® executable files, so you'd need Windows Installed.

  • WebDAV, XDB and Static File

    How to..
    <OL type="1">
    <LI>Using only what XE offers out-of-box, configure XE/XDB/Listener/whatnot to display static file (e.g index.html) at the root URL: http:// localhost:8080
    <LI>NOT using IE,Create folder in XDB
    </OL>
    thanks
    <span style="font-size:11;">Sorry searched but seems like lots of little pieces of info scattered everywhere,</span

    It can be. In theory the validation that does on when it's updated should catch all bad errors. In general I approach this as follows..
    Get the document out use FTP. Make a backup copy :). Edit using you favorite XML editor. Put back in using FTP. More often than not if it's something I expect to do many times I will create a SQL statement to do the changes and use dbms_xdb.cfgget and cfgupd to do the changes. I also have an xdb_configuration package that get methods for the really common ones. Latest version of the code is shown below...
    alter session set current_schema = XDBPM
    create or replace view DATABASE_SUMMARY_10200
    as
    select d.NAME, p.VALUE "SERVICE_NAME", i.HOST_NAME, n.VALUE "DB_CHARACTERSET"
      from v$system_parameter p, v$database d, v$instance i, nls_database_parameters n
    where p.name = 'service_names'
       and n.parameter='NLS_CHARACTERSET';
    show errors
    grant select on DATABASE_SUMMARY_10200 to public
    create or replace package XDB_CONFIGURATION_10200
    AUTHID CURRENT_USER
    as
    function   getDatabaseSummary return xmltype;
    procedure  folderDatabaseSummary;
    procedure  addSchemaMapping
                   NAMESPACE varchar2,
                   ROOT_ELEMENT varchar2,
                   SCHEMA_URL varchar2
    procedure addMimeMapping
                 EXTENSION varchar2,
                 MAPPING varchar2
    procedure  addServletMapping
                   pattern varchar2,
                   servletname varchar2,
                   dispname varchar2,
                   servletclass varchar2,
                   servletschema varchar2,
                   language varchar2 := 'Java',
                   description varchar2 := '',
                   securityRole xmltype := NULL
      procedure deleteservletMapping
                  servletname varchar2
      procedure setAnonymousAccess
                  STATE varchar2
    end XDB_CONFIGURATION_10200;
    show errors
    create or replace view DATABASE_SUMMARY_XML_10200 of xmltype
    with object id
    'DATABASE_SUMMARY'
    as select XDB_CONFIGURATION_10200.getDatabaseSummary() from dual
    create or replace trigger NO_DML_OPERATIONS_ALLOWED
    instead of insert or update or delete on DATABASE_SUMMARY_XML_10200
    begin
    null;
    end;
    grant select on DATABASE_SUMMARY_XML_10200 to public
    create or replace public synonym DATABASE_SUMMARY_XML for DATA_SUMMARY_XML_10200
    create or replace package body XDB_CONFIGURATION_10200 as
    function getDatabaseSummary
    return XMLType
    as
      summary xmltype;
      dummy xmltype;
    begin
      select dbms_xdb.cfg_get()
      into dummy
      from dual;
      select xmlElement
               "Database",
               XMLAttributes
                 x.NAME as "Name",
                 extractValue(config,'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port') as "HTTP",
                 extractValue(config,'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port') as "FTP"
               xmlElement
                 "Services",
                   xmlForest(SERVICE_NAME as "ServiceName")
               xmlElement
                 "NLS",
                   XMLForest(DB_CHARACTERSET as "DatabaseCharacterSet")
               xmlElement
                 "Hosts",
                   XMLForest(HOST_NAME as "HostName")
               xmlElement
                 "VersionInformation",
                 ( XMLCONCAT
                            (select XMLAGG(XMLElement
                               "ProductVersion",
                               BANNER
                            )from V$VERSION),
                            (select XMLAGG(XMLElement
                               "ProductVersion",
                               BANNER
                            ) from ALL_REGISTRY_BANNERS)
      into summary
      from DATABASE_SUMMARY_10200 x, (select dbms_xdb.cfg_get() config from dual);
      summary := xmltype(summary.getClobVal());
      return summary;
    end;
    procedure folderDatabaseSummary
    as
      resource_not_found exception;
      PRAGMA EXCEPTION_INIT( resource_not_found , -31001 );
      targetResource varchar2(256) := '/sys/databaseSummary.xml';
      result boolean;
      xmlref ref xmltype;
    begin
       begin
         dbms_xdb.deleteResource(targetResource,dbms_xdb.DELETE_FORCE);
       exception
         when resource_not_found then
           null;
       end;
       select make_ref(XDBPM.DATABASE_SUMMARY_XML_10200,'DATABASE_SUMMARY')
       into xmlref
       from dual;
       result := dbms_xdb.createResource(targetResource,xmlref);
       dbms_xdb.setAcl(targetResource,'/sys/acls/bootstrap_acl.xml');
    end;
    procedure addServletMapping (pattern varchar2,
                                 servletname varchar2,
                                 dispname varchar2,
                                 servletclass varchar2,
                                 servletschema varchar2,
                                 language varchar2 := 'Java',
                                 description varchar2 := '',
                                 securityRole xmltype := NULL
    as
      xdbconfig xmltype;
    begin
       xdbconfig := dbms_xdb.cfg_get();
       select deleteXML
                xdbconfig,
                '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="' || servletname || '"]'
              into xdbconfig
              from dual;
       if (language = 'C') then
         select insertChildXML
                  xdbconfig,
                  '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
                  'servlet',
                  xmlElement
                    "servlet",
                    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
                    xmlForest
                       servletname as "servlet-name",
                       language as "servlet-language",
                       dispname as "display-name",
                       description as "description"
                    securityRole           
           into xdbconfig
           from dual;
       else
         select insertChildXML
                  xdbconfig,
                  '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
                  'servlet',
                  xmlElement
                    "servlet",
                    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
                    xmlForest
                       servletname as "servlet-name",
                       language as "servlet-language",
                       dispname as "display-name",
                       description as "description",
                       servletclass as "servlet-class",
                       servletschema as "servlet-schema"
           into xdbconfig
           from dual;
       end if;
       select deleteXML
                xdbconfig,
                '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping[servlet-name="' || servletname || '"]'
              into xdbconfig
              from dual;
       select insertChildXML
                xdbconfig,
                '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings',
                'servlet-mapping',
                xmltype
                   '<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
                      <servlet-pattern>'||pattern||'</servlet-pattern>
                      <servlet-name>'||servletname||'</servlet-name>
                    </servlet-mapping>'
         into xdbconfig
         from dual;
      dbms_xdb.cfg_update(xdbconfig);
    end;
    procedure deleteservletMapping (servletname varchar2)
    as
      xdbconfig xmltype;
    begin
       xdbconfig := dbms_xdb.cfg_get();
       select deleteXML
                xdbconfig,
                '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="' || servletname || '"]'
              into xdbconfig
              from dual;
       select deleteXML
                xdbconfig,
                '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping[servlet-name="' || servletname || '"]'
              into xdbconfig
              from dual;
      dbms_xdb.cfg_update(xdbconfig);
    end;
    procedure addSchemaMapping(NAMESPACE varchar2, ROOT_ELEMENT varchar2, SCHEMA_URL varchar2)
    is
      xdbConfig xmltype;
    begin
      xdbConfig := dbms_xdb.cfg_get();
      if (xdbConfig.existsNode('/xdbconfig/sysconfig/schemaLocation-mappings','xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"') = 0) then
        select insertChildXML
                     xdbConfig,
                     '/xdbconfig/sysconfig',
                     'schemaLocation-mappings',
                     xmltype('<schemaLocation-mappings xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"/>'),
                     'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      end if;
      if (xdbConfig.existsNode('/xdbconfig/sysconfig/schemaLocation-mappings/schemaLocation-mapping[namespace="'|| NAMESPACE ||'" and element="'|| ROOT_ELEMENT ||'"]','xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"') = 0) then
        select insertChildXML
                     xdbConfig,
                     '/xdbconfig/sysconfig/schemaLocation-mappings',
                     'schemaLocation-mapping',
                     xmltype('<schemaLocation-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"><namespace>' || NAMESPACE || '</namespace><element>' || ROOT_ELEMENT || '</element><schemaURL>'|| SCHEMA_URL ||'</schemaURL></schemaLocation-mapping>'),
                     'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      else
        select updateXML
                 xdbConfig,
                 '/xdbconfig/sysconfig/schemaLocation-mappings/schemaLocation-mapping[namespace="'|| NAMESPACE ||'" and element="'|| ROOT_ELEMENT ||'"]/schemaURL/text()',
                 SCHEMA_URL,
                 'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      end if;
      dbms_xdb.cfg_update(xdbConfig);
    end;
    procedure addMimeMapping(EXTENSION varchar2, MAPPING varchar2)
    is
      xdbConfig xmltype;
    begin
      xdbConfig := dbms_xdb.cfg_get();
      if (xdbConfig.existsNode('/xdbconfig/sysconfig/protocolconfig/common/extension-mappings/mime-mappings/mime-mapping[extension="' || EXTENSION || '"]','xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"') = 0) then
        select insertChildXML
                     xdbConfig,
                     '/xdbconfig/sysconfig/protocolconfig/common/extension-mappings/mime-mappings',
                     'mime-mapping',
                     xmltype('<mime-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
                <extension>' || EXTENSION || '</extension>
                <mime-type>' || MAPPING   || '</mime-type>
                </mime-mapping>'),
                     'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      else
        select updateXML
                 xdbConfig,
                 '/xdbconfig/sysconfig/protocolconfig/common/extension-mappings/mime-mappings/mime-mapping[extension="' || EXTENSION || '"]/mime-type/text()',
                 MAPPING,
                 'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      end if;
      dbms_xdb.cfg_update(xdbConfig);
    end;
    procedure setAnonymousAccess(STATE varchar2)
    is
      xdbConfig xmltype;
    begin
      xdbConfig := dbms_xdb.cfg_get();
      if (xdbConfig.existsNode('/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-access') = 0) then
        select insertChildXML
                     xdbConfig,
                     '/xdbconfig/sysconfig/protocolconfig/httpconfig',
                     'allow-repository-anonymous-access',
                     xmltype('<allow-repository-anonymous-access xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">' || lower(STATE) || '</allow-repository-anonymous-access>'),
                     'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      else
        select updateXML
                 xdbConfig,
                 '/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-access/text()',
                 lower(STATE),
                 'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
          into xdbConfig
          from dual;
      end if;
      dbms_xdb.cfg_update(xdbConfig);
    end;
    end XDB_CONFIGURATION_10200;
    show errors
    grant execute on XDB_CONFIGURATION_10200 to public
    create or replace public synonym XDB_CONFIGURATION for XDB_CONFIGURATION_10200
    desc XDB_CONFIGURATION
    show errors
    call xdb_configuration.folderDatabaseSummary()
    set echo on
    set pages 100
    set long 10000
    select xdburitype('/sys/databaseSummary.xml').getXML() from dual
    alter session set current_schema = SYS
    /Note that some of these issues (which are non XE specific) are also discussed in the XDB forum
    XML DB

  • Export Application and Static Files

    Using Apex 3.2, I use the Export Application utility to move apps from one Environment to another.
    In one of the Apps I have a Static file which is only for that specific App, It doesn't seem the import the static file for me.
    I have to load thru shared components again in the other the environment.
    I'm I missing a step with regards to static files or do I really need to do both steps?
    Thanks

    I can't tell for sure, but - when I tried to include "static files" (such as images?) into my export script (APEXExport, right?), I couldn't find a way to do that. Therefore, speaking from my own experience, that stupid way you described is the only way I know.
    It would be nice if someone knows better; at least two of us would benefit from it.

  • Could nt complete your request because source and destination files are the same

    Hi, thank you for reading.
    I'm having this problem and it's driving me nuts.
    I'm actually following a tutorial that you can check out here: http://nightshifted.tumblr.com/post/2559360661/tutorial-paused-animations
    basically I'm trying to do a animated gif with canvas (I'm sorry if my english is not so great). when I try to drag the layers into the canvas (step 2 of the tutorial), I get the error: "could not complete your request because source and destination are the same".
    can anybody help me? I have both CS3 and CS5 and they the error appears in both.
    thank you in advanced

    I think they mean select the layers and frames and using the move tool, drag
    inside the document (click inside the document window and drag) to move the
    selected layers to the top half  (transparent area), not to drag the layers from
    the layers palette into the document, which would give that error.
    MTSTUNER

  • Is it possible to ignore and not import JPG files when a JPG and raw file of the same name exist?

    Is it possible to ignore JPG files on import? I shoot raw + JPG and see no reason to keep the JPGs; I shoot JPG primarily as a backup (I back all the JPGs up online to my smugmug account then delete them before importing the raw files), but they're also occasionally handy if one wants to get a quick print in the field. I know that one can set a preference to "Treat JPEG Files Next to Raw Files As Separate Photos", but even then they still are imported.
    As an example, say I have this scenario (not on DSLRS, but on pNs cameras, sometimes a JPG but not raw is captured - I suspect this has to do with how the buffer is filling) with these files on a memory card:
    IMG_0001.JPG
    IMG_0001.CR2
    IMG_0002.JPG
    IMG_0003.JPG
    IMG_0003.CR2
    When I import pictures from this folder, I'd like 2 CR2 files and 1 JPG to be imported. I'm even willing to copy the relevant files and drag and drop them onto LR's Library module. But even if I do that, all five files get imported. Thanks!
                         Dilip

    jim01403 wrote:
    trshaner wrote:
    For this typical example 98% of the image files are transferred while LR is building previews, which is exactly what I was suggesting be avoided.
    No, I don't believe that's correct. As I said in my previous post, Lightroom's Import is a two-stage process.....first copy the files from the card, then when that is finished, render whatever previews have been requested.
    AFAIK there is nothing unusual about my system, Lightroom has always imported in this two-stage way as far back as I can remember. Based on this I see no 'safety' benefit from copying files first outside Lightroom, then using an ADD import process. On the contrary, as this takes away the possibility of using the "Second Copy on Import" option, as well as having to manually setup import folders, I see nothing but downside from that approach.
    Mea culpa, Jim is correct! I checked my Windows 7 system with LR4.2 and I monitored the 'Destination folder' during an import direct from memory card to hard drive. 'Copy and import' showed in the progress bar until all image files were visible using Windows Explorer in the 'Destination folder.' Only after all files had transferred did the progress bar change to ‘Render 1:1 Previews.’ I started using LR1.0 on a Pentium 3 single-core system with Windows XP 32 bit, which I think is when I made this observation. Regardless, it is clear that LR4.2 is using a two-step import process. Thanks Jim for being persistent!
    It still begs the question why some people are experiencing very slow imports, damaged image files, and other related import problems from memory cards? My guess (and it's only a guess) is that they have 1) 'Rename Files,' 2) 'Automatically write changes into XMP,' or 3) 'Include Develop settings in metadata inside JPEG, TIFF and PSD files' checked in LR preferences. It would be a good idea for anyone experiencing import issues to try an import with these three (3) options unselected.
    My apologies to the OP DBarman for going off topic. Hopefully the extra information and observations are helpful.

  • Flash Player Installer downloads from the Adobe distribution site as a generic file without an extension and the file won't open.

    Hi, everyone.
    When I download Flash Player Installer from the Adobe distribution site Adobe Flash Player Distribution | Adobe the file downloads to my hard drive as a generic file with no extension, and Windows can't determine which program to use in order to open/play the file. I am using Windows 7 Professional 64 bit.
    Is there something wrong with the downloaded file? Or am I missing required software?
    Thank you for your time,
    -Brandon

    Yes, I've never had a problem before. I've even downloaded the Flash Player Install files from the Adobe distribution site on multiple occasions in the past without issue. The only thing I could think of is that perhaps the ".exe" extension was left off to avoid triggering security measures on a computer or private network that would prevent the download.
    Anyway, it worked after I added the ".exe" extension to the filename, so I have no complaints!

  • Generating Postscript file using (psl132.prt) and Text file in one go

    Actually my requirement is to have soft copy , postscript files in a single shot for character mode report because the report fetches data from the table then deletes the data.
    - I am able to generate softcopy, and postscript files same using distribution file for Bitmap report as shown below :-
    [RWRUN REPORT=C:\Report\R_TEST.RDF userid = test / test @ test DISTRIBUTE=YES DESTINATION=C:\Report\bRep.dst   ERRFILE=C:\Report\Final\report.err
    The brep.dst file for bitmap report is as follows:-
    DEST1: DESNAME=C:\Report\tpdf.pdf DESTYPE=File DESFORMAT=PDF COPIES=1 LEVEL=Report
    DEST2: DESNAME=C:\Report\test.prn DESTYPE=File DESFORMAT=BITMAP COPIES=1 LEVEL=Report
    But in case of Char mode report i am able to generate text file but i am unable to generate postscript file for using printer definition file. The commands used are as follows :-
    RWRUN REPORT=C:\Report\R_TEST.RDF userid = test / test  @ test DISTRIBUTE=YES MODE=CHARACTER   DESTINATION=C:\Reports\cRep.dst ERRFILE=C:\Report\Final\report.err
    The crep.dst file for char report is as follows :-
    DEST1: DESNAME=C:\Report\tpdf.text  DESTYPE=File DESFORMAT=ASCII   COPIES=1 LEVEL=Report
    DEST2: DESNAME=C:\Report\test.prn  DESTYPE=File DESFORMAT=prt132.prn COPIES=1 LEVEL=Report  (This option does not work is there any work around to make it work) ]
    I am getting an error. it there any work around for this or there is any other solution.
    Is there any other way i convert my text file to postscript file or viceversa...thanks

    Hi,
    Peter Gjelstrup wrote:
    Next thing is how to use it:
    declare
    k_file constant varchar2(30) := 'YourFile.xls'
    begin
    create_file(k_file);
    -- Call other procedures
    close_file;
    end;
    Don't forget: these procedures are all part of the gen_xl_xml package.
    To call them from outside the package, you have to prefix each procedure name with the package name, like this:
    declare
    k_file constant varchar2(30) := 'YourFile.xls'
    begin
    gen_xl_xml.create_file(k_file);
    -- Call other procedures
    gen_xl_xml.close_file;
    end;

  • Problem exporting '.txt' file size 23 KB and '.zip' file size 4 MB

    I am using Apex 3.0 version screen to upload '.txt' file and '.zip' file containing images.
    I can successfully export '.txt' file and '.zip' file containing images as long as '.txt' file size is < 23 KB and '.zip' file size < 4 MB from database table 'TBL_upload_file' to the OS directory on the server.
    processing of Larger files (sizes 35 KB and 6 MB) produce following Error Message.
    ‘ORA-21560: argument 2 is null, invalid or out of range’ error.
    Here is my code:
    I am using following code to export Documents from database table 'TBL_upload_file' to the OS directory on the server.
    create or replace procedure "PROC_LOAD_FILES_TO_FLDR_BYTES"
    (pchr_text_file IN VARCHAR2,
    pchr_zip_file IN VARCHAR2)
    is
    lzipfile varchar(100);
    lzipname varchar(100);
    sseq varchar(1000);
    ldocname varchar(100);
    lfile varchar(100);
    -- loaddoc (p_file in number) as
    l_file UTL_FILE.FILE_TYPE;
    l_buffer RAW(32000);
    l_amount NUMBER := 32000;
    l_pos NUMBER := 1;
    l_blob BLOB;
    l_blob_len NUMBER;
    l_file_name varchar(200);
    l_doc_name varchar(200);
    a_file_name varchar (200);
    end_pos NUMBER;
    begin
    -- Get LOB locator
    SELECT blob_content,doc_name
    INTO l_blob,l_file_name
    FROM tbl_upload_file
    WHERE DOC_NAME = pchr_text_file;
    --get length of blob
    l_blob_len := DBMS_LOB.getlength(l_blob);
    -- save blob length to determine end position
    end_pos:= l_blob_len;
    -- Open the destination file.
    -- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
    l_file := UTL_FILE.fopen('BLOBS',l_file_name,'WB', 32760); --use write byte option supported in 10G
    -- if small enough for a single write
    IF l_blob_len < 32760 THEN
    utl_file.put_raw(l_file,l_blob);
    utl_file.fflush(l_file);
    ELSE -- write in pieces
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw(l_file, l_buffer);
    utl_file.fflush(l_file); --flush pending data and write to the file
    -- set the start position for the next cut
    l_pos := l_pos + l_amount;
    -- set the end position if less than 32000 bytes, here end_pos captures length of the document
    end_pos := end_pos - l_amount;
    IF end_pos < 32000 THEN
    l_amount := end_pos;
    END IF;
    END LOOP;
    END IF;
    --- zip file
    -- Get LOB locator to locate zip file
    SELECT blob_content,doc_name
    INTO l_blob,l_doc_name
    FROM tbl_upload_file
    WHERE DOC_NAME = pchr_zip_file;
    l_blob_len := DBMS_LOB.getlength(l_blob);
    -- save blob length to determine end position
    end_pos:= l_blob_len;
    -- Open the destination file.
    -- l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767);
    l_file := UTL_FILE.fopen('BLOBS',l_doc_name,'WB', 32760); --use write byte option supported in 10G
    -- if small enough for a single write
    IF l_blob_len < 32760 THEN
    utl_file.put_raw(l_file,l_blob);
    utl_file.fflush(l_file); --flush out pending data to the file
    ELSE -- write in pieces
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    l_pos:=1;
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw(l_file, l_buffer);
    UTL_FILE.fflush(l_file); --flush pending data and write to the file
    l_pos := l_pos + l_amount;
    -- set the end position if less than 32000 bytes, here end_pos contains length of the document
    end_pos := end_pos - l_amount;
    IF end_pos < 32000 THEN
    l_amount := end_pos;
    END IF;
    END LOOP;
    END IF;
    -- Close the file.
    IF UTL_FILE.is_open(l_file) THEN
    UTL_FILE.fclose(l_file);
    END IF;
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-20214,'Screen fields cannot be blank, Proc_Load_Files_To_Fldr_BYTES.');
    WHEN TOO_MANY_ROWS THEN
    RAISE_APPLICATION_ERROR(-20215,'More than one record exist in the tbl_load_file table, Proc_Load_Files_To_Fldr_BYTES.');
    WHEN OTHERS THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open(l_file) THEN
    UTL_FILE.fclose(l_file);
    END IF;
    RAISE_APPLICATION_ERROR(-20216,'Some other errors occurred, Proc_Load_Files_To_Fldr_BYTES.');
    end;
    I am new to the Oracle.
    Any help to modify this scipt and resolve this problem will be greatly appreciated.
    Thank you.

    Ask this question in the Apex forums. See Oracle Application Express (APEX)
    Regards Nigel

  • Moving multiple files by date range and/or file name filtered

    I need to move multiple files by date range and/or by filename (using a filter) to another directory. 
    OR
    How can I get the attributes of files in a directory, something you would see when typing in "dir" in a DOS or ls in UNIX.  I can parse this info and then make a array of files to move.
    The reason for needing this is that I need to move files that are located in another country, and sort them into different directories based on date.  Having to read each file for it's file information adds wasted time that I can't afford.  I am about to create a dos terminal to do a "dir" command to get the information and parse it out.. but I was hoping LV had a function that can get me that info so I don't have build it.
    THanks.

    You should use the 'File/Directory Info' functionality.
    This will return the last modificatoin of the file.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Best file format for PS and Illustrator files to be placed into ID

    I'm writing a proposal using InDesign. It will be output to PDF for circulation among the team members; I imagine they will view it on a variety of screens and some will print it out on various desktop printers.
    I have a variety of images, all in color, done in InDesign, Photoshop and Illustrator that need to be placed into the propsal. Sizes range from 5x7 to 2x2. Some are quite complex with fine detail.
    I've just viewed the proposal in ID Overprint Preview / High Quality Display. The images don't look great. Lots of ragged lines.
    I usually save everything to JPEG with a quality of 80-90...but that is just a habit, I have no reason or justification for this practice.
    I'm wondering if I should go back into the original ID, PS and AI files and resave them as something else before and then place them again.
    Does anyone have any recommmendations or thoughts to offer?
    I'm using CS4 on a MAC. My computer is a little bit underpowered for the project at hand, but I'm willing to put up with a bit of slow performance and lag if it results in a better end product.

    Jagged lines is a hallmark of low resolution, not file type, or a lower quality screen preview than you think you are using. Check the Display performace settings again to be sure they really are correct, and if they're set to allow object level settings, you'll need to verify that each object is also set correctly.
    Beond that, saving as .jpeg is always destructive. For the web, that's fine, but for print you should never use anything, in my opinion, but the highest quality settings for saving jpegs, and I advise again using jpeg at all. If you image is all raster data (pixels) save as .psd or .tif. If it has live type or other vector content, save as Photoshop PDF. In Illustrator save as .ai or PDF with Illustrator editing capability. If you change the extension of the Photoshop PDFs to PDP they will open in Photoshop instead of Acrobat when you use Edit Original.
    As I said, the jaggies are a hallmark of low resolution. We often have people tell us that the file is 300 ppi, but it turns out that's at some very small dimension and the imaga has been scaled up in ID. Both the Links panel and Info panel can show you the resolution information for your images. There will be two numbers, actual and effective. Effective resolution is the only number that matters. For printing on a desktop printer I like to see a minimum of 150 ppi, but you might get away with as low as 90 for a non-critical image. For press 300 ppi would be the rule of thumb, and dropping below 200 is asking for trouble.
    How the file looks in ID is not nearly as informative as how a PDF exported from the file looks, or prints. For a high-res image in ID you are still looking at a lower resolution screen preview, not the actual image as it will be output. Export settings that downsample too far or apply too much compression to reduce file size can also turn a good document into a clunker.

  • How to open a file, change the name and write file

    Hi,
    I want to open an existing .dat-file in Labview, manipulate the data and save this data into a new file with a different file name.
    Though the name should be different I would like to use the old name and add something to it.
    (In my programm the .dat file containes the date and time the data was
    measured and I would like to keep this information in the filename.)
    For example: the original title is file1.dat now I want to save it as file1_manipulated.dat
    Is that possible? What is the best and easiest way to do it?
    Thanks a lot
    Chris

    Hi Mike,
    thanks for your help.
    This will give me my path in string format. But to open a new file and then write my data into it, I need a path format (see right side of png)
    Is that right?
    I attached a png, so you hopefully get an idea where this is going. (I know this won´t work yet)
    I open a file and this filename depends on the date and time the data was recorded. So I can´t work with a stringconstant.
    Sorry for this beginner questions - this stuff is absolutly new to me.
    Thanks in advance
    Chris
    Attachments:
    newfile.png ‏11 KB

Maybe you are looking for

  • How to get AFP and not SMB

    i am trying to set up a chronosync between my laptop and desktop and i am being told by the good folks at chronosync that i am having an issue because i have an SMB connection and not an AFP connection. they have provided pretty specific instructions

  • LPX Bug Report: no visual indication of SMPTE lock

    I'm pretty sure this is a bug and would appreciate if others can verify this.  In Logic Pro X, I've inserted a few markers.  When I choose "SMPTE Lock" there is no visual indication that the marker is locked at all, except for the fact that I can't m

  • Layout for ME22N

    Dear Experts, We have set PO layout as per PO document type. We have made (display) of PO Price in line item as well as conditions like PB00 (display- Manually rate not allowed). Now we want to open PO Price editable in ME22N. As ME22N will be given

  • SGP521 won't Update.

    Hi Guy's, I just got the Z2 LTE version and i'm stuck on the 17.1.A.2.36 build. Companion says it's up to date but sony australia site says .55 is the newest. How does one force update? 

  • Webcam websites will not load correctly

    Hi! Every website that I try to access live web cam shows, while using IE 6, that uses the flash player, either will time out, or load quickly and then time out, or I get performer has left, when they really haven't. Other errors I get are 'unauthori