Unable to correctly download Document using wpg_docload.download_file.

I am using default MOD/PLSQL Portal Functionality to Upload the files into the Portal. I am able to download the documents uploaded by me, but I am unable to view the documents uploaded by others
I have used the following procedure for download. Is there something severly wrong.
I need some urgent help to save my neck
Create or replace Procedure downloadfile
V_FILEID IN VARCHAR2)
as
begin
wpg_docload.download_file(v_fileid);
exception
when others then
htp.p(sqlerrm);
end;

helo there.
I TRIED THE SAME BUT I DIDN'T SUCCEED.. SINCE MY SYSTEM CACHING HAD A PROBLEM.
ANY SUGGESTIONS ARE HIGHLY APPRICIATED.
BYE

Similar Messages

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • Have recently updated Adobe Reader and now unable to open downloaded documents - Message received is could not open 'file name.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email a

    Have recently updated Adobe Reader and now unable to open downloaded documents - Message received is could not open 'file name.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). When I check the file it shows Zero KB downloaded but the file appears - any suggestions?

    Obviously your download was not successful.
    What is your operating system?  How exactly do you download such files?

  • Download file using wpg_docload doesn't work

    Hello All,
    I am creating a web page that uploads and downloads files. Oracle table that stores BLOB content and type is working fine.
    Upload works fine. When I download file, it opens in the same browser and same tab instead of opening in 'Save As' dialog box . The code is as below:
    IF params('submit') ='Download' THEN
    SELECT mime_type, dbms_lob.getlength( blob_content ), blob_content
    INTO s_mime_type, n_length, lob_cont
    FROM rowan.FILE_UPLOAD
    WHERE name=params('txtFilename');
    -- Set the size so the browser knows how much it will be downloading.
    owa_util.mime_header('text/plain', FALSE );
    htp.p( 'Content-Length:' || n_length );
    -- The filename will be used by the browser if the users does a "Save as"
    htp.p('Content-Disposition: attachment; filename="'||params('submit')||'"');
    owa_util.http_header_close;
    -- Download the BLOB
    wpg_docload.download_file( lob_cont );
    --htp.showpage ();
    END IF;
    Thanks,
    Himadri.

    Your SQL select statement includes the column mime_type.
    The HTTP header that is created by your code, sets the Mime type as follows:
    owa_util.mime_header('text/plain', FALSE );
    So.. the file could be binary, could be an image - and this code tells the browser that the data in that HTTP response is in fact plain ASCII text.
    Obviously the browser will choke on that HTTP response as the content is not ASCII text. And it will use the application that is associated with Mime type text/plain to receive that response. By default, that is the browser itself. So it will open a new rendering window/tab (or use the existing one) to display this "text" contents that is expects to receive.
    Change that statement in your code to:
    owa_util.mime_header(s_mime_type, FALSE );

  • Problem when downloading file to local using WPG_DOCLOAD.download_file

    Hi ,
    i am using database 11g and i am trying to write to file on database server using utl_file and download to the local machine by pl/sql procedure . i am directly executing this procedure in pl/sql . i am getting ORA-06502: PL/SQL: numeric or value error when executing owa_util.mime_header ('application/vnd.ms-excel',TRUE); statement in the procedure . not sure what is happening and i am new in using these features
    here is my code
    CREATE OR REPLACE PROCEDURE UTL_TEST_DOWNLOAD
    AS
    output_file utl_file.file_type;
    vexists BOOLEAN;
    vfile_length NUMBER;
    vblocksize NUMBER;
    l_blob BLOB;
    l_bfile BFILE;
    BEGIN
    output_file:=UTL_FILE.FOPEN('DATA_DIR', 'timesheet.csv', 'w');
    UTL_FILE.PUT_LINE(output_file,'COST_CENTRE'||
    'HISTORY_DATE'||
    'REF_NO'||
    'FIELD_NAME'||
    'VALUE'||
    'DATA_TYPE'||
    'CHANGE_DATE'||
    'INT_REF');
    UTL_FILE.fclose(output_file);
    UTL_FILE.FGETATTR('DATA_DIR','timesheet.csv',vexists,vfile_length,vblocksize);
    IF vexists THEN
    DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
    l_bfile := BFILENAME ('DATA_DIR', 'timesheet.csv');
    DBMS_LOB.fileopen (l_bfile,dbms_lob.file_readonly);
    DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB.fileclose (l_bfile);
    owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    dbms_output.put_line('after owa_util' );
    owa_util.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    end if;
    EXCEPTION
    WHEN utl_file.invalid_path THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_path');
    WHEN utl_file.invalid_mode THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_mode');
    WHEN utl_file.invalid_filehandle THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_filehandle');
    WHEN utl_file.invalid_operation THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_operation');
    WHEN utl_file.read_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.read_error');
    WHEN utl_file.write_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.write_error');
    WHEN utl_file.internal_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.internal_error');
    WHEN OTHERS THEN
    dbms_output.put_line('SQLERRM '||SQLERRM);
    END UTL_TEST_DOWNLOAD
    SQLERRM ORA-06502: PL/SQL: numeric or value error
    The file is getting created all the time i execute this procedure i am getting the above error while executing this statement owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    Edited by: user5784286 on Jul 2, 2012 7:35 PM

    Hi,
    You need to call the procedure owa.init_cgi_env before you can use owa_util.mime_header from SQL*Plus.
    See [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:500221786045]here for details.
    Rod West

  • Unable to use WPG_DOCLOAD.download_file in Apex 4.2.1

    Hi guys,
    I stumbled on the next problem. We recently migrated from apex 4.0 to 4.2.1 and use a procedure to open an RTF document filled with parameters from a chosen record.
    It always worked with the a procedure calling the next line: WPG_DOCLOAD.download_file (l_doc);
    Now, in 4.2.1 it doesn't do anything, doesn't give an error if a press the button.
    Has anyone experienced the same problem? I already searched the internet but never found a solution.
    Thanks in advance.

    thanks for your fast answer. The issue is with a migrated application.
    And here is snippet of my package code:
      l_filename := r_brief.template_naam;
      l_mime_type := r_brief.template_mime;
      v_document_clob := GEN$PL_UTILS.blob_to_clob(r_brief.template_blob);
      v_document_clob := GEN$PL_UTILS.replace_tags_in_clob(v_document_clob , tab_temp_tags_values, tab_temp_toegelaten_tags, v_replace_error);  
      l_doc := GEN$PL_UTILS.clob_to_blob(v_document_clob);
      l_length := DBMS_LOB.getlength(l_doc);
      OWA_UTIL.mime_header (l_mime_type);
      HTP.p ('Content-length: ' || l_length);
      HTP.p ('Content-Disposition: attachment; filename="'||REPLACE(REPLACE(SUBSTR(l_filename,INSTR(l_filename,'/')+1),CHR(10),NULL),CHR(13),NULL)||'"');
      OWA_UTIL.http_header_close;
      WPG_DOCLOAD.download_file (l_doc);
    Do you see something wrong here?

  • Unable to sign a document using latest adobe reader.

    Hi guys,
    I've never had to sign a document using reader before so I'm really lost. I've downloaded the latest adobe reader version and created an adobe account. The form is enabled for reader and signatures as far as I can tell.
    I'm logged in while the file is open but under the right side tab "sign" all the options are grayed out, I also cant just click on the signature box like it mentions in the help vids.
    I've added a screen shot to show you what I mean.
    Thanks guys,
    Mike

    Try updating the software, first? PKCS12 is the latest one.
    Also-- you have to make sure you have a digital ID stored in the computer (or through a server), or you can create one.

  • Unable to download Document using the GET_FILE service

    Hi,
    I have a custom component-custom service being called from a workflow,which downloads the file to an external folder every time a check in is performed with parameters matching the criteria of the workflow.
    Now the issue is every time the file is checked in for the first time,the file which gets downloaded only has the binder information with the status message as:
    "StatusMessage=Unable to download 'ABC022257'.Unable to find latest revision for item 'ABC022257'."
    Can anyone point out to probable causes??

    I'm using the following piece of code to download the file :
                   IdcClient client = getClient();
                   IdcContext IdcContext = getUserContext();
                   DataBinder dataBinder = client.createBinder();
                   SystemUtils.trace("system", "dID in getFile>>>>>>>>>>" + dID);
                   dataBinder.putLocal("IdcService", "GET_FILE");
                   dataBinder.putLocal("dID", dID);
                   dataBinder.putLocal("dDocName", contentID);
         ServiceResponse response = client.sendRequest(IdcContext, dataBinder);
         stream = response.getResponseStream();
    File f = new File(fileSaveLocation);
                        OutputStream out = new FileOutputStream(f);
                        byte buf[] = new byte[1024];
                        int len;
                        while ((len = stream.read(buf)) > 0)
                        out.write(buf, 0, len);
                        out.close();
    Also,I'm getting following error in the logs,although i did a fresh check in:
    !csUserEventMessage,weblogic,CIS!$ intradoc.common.ServiceException: !csUnableToDownload,ABC003803
    services/3     05.24 12:32:38.460     IdcServer-213     *ScriptStack GET_FILE
    services/3     05.24 12:32:38.460     IdcServer-213     3:computeDocID,dID=3018,dDocName=ABC003803
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.buildServiceException(Service.java:2326)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.createServiceException(Service.java:2315)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.FileService.computeDocID(FileService.java:423)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    services/3     05.24 12:32:38.460     IdcServer-213     at java.lang.reflect.Method.invoke(Method.java:597)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doCodeEx(Service.java:620)
    services/3     05.24 12:32:38.460     IdcServer-213     at ziprenditions.ZipRenditionsHandler.callMethodRecursively(ZipRenditionsHandler.java:1703)
    services/3     05.24 12:32:38.460     IdcServer-213     at ziprenditions.ZipRenditionsHandler.computeDocID(ZipRenditionsHandler.java:699)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    services/3     05.24 12:32:38.460     IdcServer-213     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    services/3     05.24 12:32:38.460     IdcServer-213     at java.lang.reflect.Method.invoke(Method.java:597)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doCodeEx(Service.java:603)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doCode(Service.java:575)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doAction(Service.java:547)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doActions(Service.java:542)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.executeActions(Service.java:528)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.Service.doRequest(Service.java:1956)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    services/3     05.24 12:32:38.460     IdcServer-213     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
    services/3     05.24 12:32:38.460     IdcServer-213     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    services/3     05.24 12:32:38.460     IdcServer-213     at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    services/3     05.24 12:32:38.460     IdcServer-213     Caused by: intradoc.common.ServiceException: !csItemNoLongerInSystem2,ABC003803,3018
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.utils.FileRevisionSelectionUtils.computeDocumentRevisionInfo(FileRevisionSelectionUtils.java:487)
    services/3     05.24 12:32:38.460     IdcServer-213     at intradoc.server.FileService.computeDocID(FileService.java:418)
    services/3     05.24 12:32:38.460     IdcServer-213     ... 33 more
    Edited by: user1175496 on May 24, 2013 12:04 AM

  • Unable to checkin a document using 'CHECKIN_UNIVERSAL" service through java

    Hi All,
    I am trying to checkin a document through java code and following is my code part for the same( UCM 11g)
    But whenever i run this code part, it throws the following exception
    intradoc.common.ServiceException:csUnableToCheckin,<null>!csUnabletoExecMethod,populateMissingDocumentValues
    Can anyone help me with this?
    Code part
    private void checkinDoc()
    File f=new File("D:/testfolder/BPEL.pdf");
    System.out.println(" absolute path :"+f.getAbsolutePath());
    String filePath = f.getAbsolutePath().replace("\\", "/");
    checkedOutDataBinder.putLocal("IdcService", "CHECKIN_UNIVERSAL");
    checkedOutDataBinder.putLocal("dDocTitle","test");
    checkedOutDataBinder.putLocal("dDocAuthor", "weblogic");
    checkedOutDataBinder.putLocal("dDocType","Document");
    checkedOutDataBinder.putLocal("dSecurityGroup","public");
    checkedOutDataBinder.putLocal("doFileCopy", "1");
    checkedOutDataBinder.putLocal("primaryFile", filePath);
    checkedOutDataBinder.putLocal("xCollectionID", "425180507509000004");
    checkedOutDataBinder = executeService(checkedOutDataBinder,
    "weblogic");
    private DataBinder executeService(final DataBinder binder,
    final String userName) throws DataException, ServiceException
    // obtain a connection to the database
    Workspace workspace = getSystemWorkspace();
    // check for an IdcService value
    String cmd = binder.getLocal("IdcService");
    if (cmd == null)
    throw new DataException("!csIdcServiceMissing");
    // obtain the service definition
    ServiceData serviceData = ServiceManager.getFullService(cmd);
    if (serviceData == null)
    throw new DataException(LocaleUtils.encodeMessage(
    "!csNoServiceDefined", null, cmd));
    // create the service object for this service
    Service service = ServiceManager.createService(serviceData.m_classID,
    workspace, null, binder, serviceData);
    // obtain the full user data for this user
    UserData fullUserData = getFullUserData(userName, service, workspace);
    service.setUserData(fullUserData);
    // binder.m_environment.put(REMOTE_USER, userName);
    ServiceException error = null;
    try
    // init the service to not send HTML back
    service.setSendFlags(true, true);
    // create all the ServiceHandlers and implementors
    service.initDelegatedObjects();
    // do a security check
    service.globalSecurityCheck();
    // prepare for the service
    service.preActions();
    // execute the service
    service.doActions();
    // do any cleanup
    service.postActions();
    // store any new personalization data
    // service.updateSubjectInformation(true);
    //service.updateTopicInformation(binder);
    catch (ServiceException e)
    error = e;
    e.printStackTrace();
    finally
    // Remove all the temp files.
    service.cleanUp(true);
    workspace.releaseConnection();
    // handle any error
    if (error != null)
    // throw new ServiceException(error.m_errorCode, error
    // .getMessage());
    return binder;
    }

    I have been running into the same exception, albeit with UCM 10g:
    Content item 'xxx' was not successfully checked in. Unable to execute service method 'populateMissingDocumentValues'. (System Error: Runtime error: java.lang.NullPointerException
    at collections.CollectionMetaHandler.validateMetaDataDates(CollectionMetaHandler.java:771)
    at collections.CollectionMetaHandler.fillInUndefinedMeta(CollectionMetaHandler.java:806)
    at collections.CollectionUserHandler.setUndefinedMetaData(CollectionUserHandler.java:1353)
    at collections.CollectionUserHandler.populateMissingDocumentValues(CollectionUserHandler.java:1275)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
    at intradoc.server.Service.doActions(Service.java:447)
    it seems to have something to do with the xCollectionID.
    If I don't set this, it works fine (checking in and out, checking in new revision). If I set it I can check in a new item using CHECKIN_NEW but I am unable to use CHECKIN_UNIVERSAL to check in a new revision.
    Any pointers would be appreciated.
    Edited by: Jaap on 6-jun-2011 2:41
    Edited by: Jaap on 6-jun-2011 3:09

  • Can't post a revised version of a downloadable document using iWeb

    I've stumbled across what may be a bug in iWen '09. This info is provide as an FYI (unless someone else sees something that I'm doing wrong).
    My web site, created in iWeb '09, has a few downloadable pdf documents. Everything works fine. Today I decided to revise one of those documents but without changing its name. I quickly learned that there is no permanent link between iWeb and the document on my Mac, i.e. iWeb does not recognize when the modified date of the document changes and, thus, it does not upload the revised version to the web server.
    So I changed the name of the document (by simply adding the digit '2' at the end, e.g. changed it from "document.pdf" to "document2.pdf") and changed the hyperlink on the web page to match. I saved the changes and republished, but the original document did not get replaced and the new document was not uploaded (I can see the entire file structure on the web server); the only document on the server was the original. When I went back and looked at my hyperlink settings, my selection of "document2.pdf" had been replaced by "document-1.pdf". No such document exists on my Mac and no document by that name appeared magically on the server.
    Next, I went to the server and manually deleted the "document.pdf" file, reset the hyperlink back to "document2.pdf" and republished again. Again, iWeb reset the hyperlink back to "document-1.pdf" but didn't upload anything (since there is no "document-1.pdf" in existence.
    Lastly, I deleted the link entirely, created a new one with an entirely different label, selected the "document2.pdf" file again, and again republished. Same thing: hyperlink reset to "document-1.pdf" and no file was uploaded to the server.
    I'm going to struggle with this some more and if I find a solution, I'll come back here and share it. In the meantime, if anyone else finds a solution, give a holler.

    Brian:
    If you want a way to be able to update the pdf file without having to use iWeb use the following method:
    1 - zip/compress the pdf and upload it to your server and determine the URL to the zipped file.
    2 - in iWeb create a hyperlink to an external page and user the URL to the zipped pdf as the link.
    3 - whenever you want to update the pdf do so, zip it and upload to the server to replace the previous version.
    This avoids having to use iWeb to change its "A file" hyperlink using a new zipped file. The Click Here link in this demo page is created that way: Add PDF . Put your cursor over it and check the URL in the Status Bar at the bottom of the window.
    OT

  • WPG_DOCLOAD.download_file - can I download a BFILE directly?

    In the past I've been using WPG_DOCLOAD.download_file to download blobs with little problem other than it can be v slow as the files in our application are stored as BFILES on a file server and the application takes time in pulling the file across and creating a temp_blob in the database, which is then presented to the user for download (the files can be v large)
    The link below suggests that I can pass through a BFILE directly to the WPG_DOCLOAD.download_file procedure, however I cannot modify my code to get it to work
    Download BFILE Procedure
    The simple code I have is below - and is called by an application process. The code runs but the downloaded file is empty.
    DECLARE
    v_mime VARCHAR2(48) := NULL;
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BFILE;
    BEGIN
    SELECT path, name, DBMS_LOB.GETLENGTH(path)
    INTO lob_loc,v_file_name,v_length
    FROM temp_tars
    WHERE tarid = v('P1_TARID');
    DBMS_LOB.OPEN(lob_loc, DBMS_LOB.LOB_READONLY);
    OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ( 'Content-Disposition: attachment; filename="' || v_file_name || "');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    DBMS_LOB.CLOSE(lob_loc);
    end;

    Hi,
    You have grant all needed privileges, e.g. read permission to DAD user to your directory ?
    Regards,
    Jari
    Edited by: jarola on Jan 5, 2011 1:59 PM
    Here is similar post that might help
    Re: Simple way to display pictures stored outside oracle xe in a html region

  • Downloading and saving documents using the latest version of Firefox is problematic.

    I am having bad experiences in downloading documents using the latest version of Firefox. When one downloads one is offered the option of opening or saving the document. When you select save it does not give you the option of saving it to a folder on your hard drive. You need to open it anyway in order to save it to a desired location. If you simply hit save its only saved to a temporary or downloads folder - and these can never be found again once you close the doc. Last night I lost many hours of work on a document in this way. It would be great if this could be sorted because I enjoy using Firefox. But I have now lost several documents inadvertantly and there is extra work in saving items - which is beginning to be quite a drag. Kind regards, Howard Varney. .

    You are indeed up to date. Firefox stopped using that address as its default start page when 4.0 came out - the page you're using may be (wrongly) assuming that if you're looking at it, you must still be on Firefox 3.6.
    If you [[How to set the home page#w_restore-the-default-home-page|restore the default home page]] you should get more up-to-date information.

  • Unable to transfer post the document using BAPI "BAPI_GOODSMVT_CREATE"

    Hi Experts,
    I am unable to post the document using BAPI "BAPI_GOODSMVT_CREATE", getting error "_Sales order stock --- does not exist_"
    details are stated below:
    GM_CODE : 04, it is working fine for the scenario with same saleorder number and line item, but when i give same sale order number and different line item, then i am getting the above error.
    Example : Posting from Saleorder A with line item 100 to saleorder A with lineitem 100 its working fine, but when we are posting
                    from Saleorder A with lineitem 100 to saleorder A with line item 200 it is not working.
    Also When I trying to do with the transaction MB1B manually, it is working fine. kindly suggest me.
    Needed Urgently....
    Appreciate for you early response.
    Regards,
    Sathya.
    Edited by: Sathyanarayana Raghavendra on May 6, 2010 1:00 PM

    Hi,
    Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI.    ?
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    Regards,
    Jovito.

  • Wpg_docload.download_file opens in a new window in PL/SQL Oracle code

    I am trying to download the attachment from web browser using wpg_docload.download_file command from the PL/SQL procedure. I like to open the document in the same browser window instead of opening new window (Excel spreadsheet opens in Excel) or when the new window opens, the old window should close.
    Does anybody know how to do this

    Hi,
    Rather than submitting the page I would try opening a new page (for example, by calling popUpNamed) passing the ids as a parameter to this page. Then have your download process as a before header process on this page.
    Use apex_application.g_unrecoverable_error := TRUE; at the end of your code to ensure that none of the page processing for this page is actually run.
    Rod West

  • Archiving multiple blobs - wpg_docload.download_file ( l_blob )

    I am using the standard wpg_docload.download_file ( l_blob ) to download individual files in APEX.
    However I also need an Archive function to pull out multiple blob records each time from the Oracle database and I do not want to select "save as" each time for each file. As this is the case then I cannot use
    wpg_docload.download_file( l_blob )
    Is there an alternative command I can use to export multiple blob files from oracle to a specific folder on the network
    Thanks
    Stephen

    Stephen:
    if you ever figure out how to do this, please make sure you post the solution on this forum. We have the same requirement, to be used for 2 scenarios: one for archiving old documents, and the other for downloading a bunch of files based on the report search criteria (e.g. download me all policy documents issued in 2007 calendar year, download all certificates issued in county XYZ, etc).
    Vojin

Maybe you are looking for

  • System Copy (R3load) with Cluster

    Hello, I've installed sap r/3 4.6C + Windows 2003 + oracle 10g in MSC. Now, How can I do to import de database againg with R3SETUP -f DBMIG.R3S in a cluster environment ? Thank's in advanced

  • Xml code for HTTP client

    Hi all can anyone send me the XML code to write in HTTP client to know the structure for a table using  a scenario. I already developed the scenario for HTTP to JDBC  just post me the XML code. Thanks and Regards Raghu.

  • What are all the itunes host names (IPs) about?

    I monitor downloads with a tool called matrixstats. I am currently  in the process of filtering to remove hits from spam bots, robots and web crawlers from the statistical reports. The itunes IP 17.* is the most aboundant host name recorded. Is the i

  • Can any kind soul please tell me where I can find a download for a free trial of Adobe Photoshop CS6?

    I have the chance to buy PhotoShop CS6, but I would like to do a free trial first, hence my question. Thank you, Bob_Ryder

  • DAG/cluster network troubleshooting

    We have a 2 DAG cluster EX01 and EX02. EX02 holds all active copies and EX01 holds all passive copies.   When trying to move active copies from 02 to 01 it fails everytime. Also trying to move Primary active manager from 02 to 01 fails. There is an e