Downloading a PDF document via blob won't open start acrobat on click

I'm experiencing a problem trying to get acrobat reader to open immediately when viewing a file stored as a blob is clicked. I am updating an old plsql webtoolkit app that stores pdf files in the database as a blob and displays them to the user in a frame. Download is achieved using wpg_docload.download_file() and the example provided by Oracle documentation. The download package body is:
BEGIN
  l_filename := SUBSTR(OWA_UTIL.get_cgi_env('PATH_INFO'), 2);
-- get mime type from db
  SELECT blob_content,
         mime_type
  INTO   l_blob_content,
         l_mime_type
  FROM   documents
  WHERE  name = l_filename;
-- Add header
  HTP.init;
  OWA_UTIL.mime_header(l_mime_type, false);
  HTP.print('Content-Length: ' || DBMS_LOB.getlength(l_blob_content));
  HTP.print('Content-disposition: inline; filename="'|| l_filename ||'"');
  OWA_UTIL.http_header_close;
-- get document 
  WPG_DOCLOAD.download_file(l_blob_content);
EXCEPTION
  WHEN OTHERS THEN
    HTP.htmlopen;
    HTP.headopen;
    HTP.title('File Downloaded');
    HTP.headclose;
    HTP.bodyopen;
    HTP.header(1, 'Download Status');
    HTP.print('Download of ' || l_filename || ' failed.');
    HTP.print(SQLERRM);
    HTP.bodyclose;
    HTP.htmlclose;
END download;All files will download okay but the acrobat container doesn't open right away and show a progress bar. It waits for the entire file to download, then opens the file. This becomes a bigger issue when the file size increases because it appears as though the site hangs until the document appears.
If I place a file on a site directory instead of inside the database, create a link to it and click it, acrobat opens right away and displays progress. I want to get the site to open blob stored files in adobe right away and show download progress as if the file was stored on a site folder.
Any ideas? Thanks

Add this line to the content header
HTP.print('Accept-Ranges: bytes');

Similar Messages

  • PDF created in Pages won't open in Acrobat

    has anyone had this problem before? did acrobat update and pages just needs to catch up? thoughts?

    Hi Blake,
    If it's any help at all, I've noticed big problems when using black and white/grayscale images; they format randomly when opened in Acrobat Reader. The image can still be black and white, but you need to make sure it still uses a colour space like RGB/sRGB/Adobe RGB. Try checking the colour profile of your images in Photoshop, or you can get Automator to assign a colour profile if P'hotoshop isn't available to you.
    I hope that helps.
    Andrew

  • HT5557 I want to download a PDF document full of charts and graphics. Pages won't load it. Will ibooks?

    I have loaded Pages software on my ipad.
    I received a PDF document via email as an attachment which I wanted to save. It was a small document, but with lots of graphics, the ipad offered me no no option to store in Pages.
    What app could I download which the ipad would give as an option for storage from an email. Would ibooks do?
    I already have winzip, but that didn't show as an option.
    Any advice would be welcome. Thank you.

    Welcome to the Apple Community.
    Yes iBooks will organise and display pdfs.

  • When I attempt to Extend a PDF document via my LiveCycle server I get the error"Application Alert" The file could not be saved. Are you sure you want to lose your results?

    When I attempt to Extend a PDF document via my LiveCycle server I get the error"Application Alert" The file could not be saved. Are you sure you want to lose your results?
    I can login fine via this address.
    http://[Server Address]:[Port Number]/ReaderExtensions
    And I can apply the extension successfully, but when I attempt to download I receive the error above.
    Application Alert" The file could not be saved. Are you sure you want to lose your results?

    Please check the supported version of flash player on your client machine for LiveCycle : http://bit.ly/1wGD9t4
    Upgrade or downgrade it accordingly.
    Thanks,
    Wasil

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

  • Hello! I would like to know the procedure to turn a word document into a PDF document via Adobe Reader.

    Hello! I would like to know the procedure to turn a word document into a PDF document via Adobe Reader. Do I have to pay for it or just sign up? Thank you in advance.

    "...the procedure to turn a word document into a PDF document via Adobe Reader." 
    Not possible.
    No version of Adobe Reader can:
    --| create PDF 
    --| manipulate PDF page content  
    --| export PDF page content
    Adobe Reader XI does provide a "connection" to various Adobe hosted online subscription services (that are under "acrobat.com").
    There is a subscription services can create PDF from supported file formats that are uploaded to the service.
    This subscription service is "PDF Pack".
    With an active (paid up) subscription to a service one can make use of the service.
    Be well...

  • If I try to download a pdf document, it appears in the tab but not on screen. I am using Firefox. I tried it with Safari and the document appeared on screen but it wouldn't print.

    If I try to download a pdf document, details appear in the tab but not on screen. I am using Firefox. If I use Safari it appears on the screen but the print is blank.

    Hi...
    Quit your browsers.
    Open the Finder.
    From the menu bar click Go > Go to Folder
    Typs this exactly as you see it here:    /Library/Internet Plug-Ins
    Click Go
    Move the Adobe PDF Browser plugin  (or just PDF Browser plugin) to the Trash.
    Relaunch either Firefox or Safarai and try downloading a PDF document.

  • I am unable to download a pdf document onto my MAC from a Canadian government website

    I'm having trouble downloading a pdf document from a canadian govenrment website (I'm on MAC) in spite of having installed the latest version of Adobe reader.  Any ideas?

    When I go to:
    Canadian Film or Video Production Tax Credit (CPTC) - Arts and Cultural Industries - Arts and Culture
    www.gc.ca/cptc/forms
    and attempt to download the 'Breakdown of Costs (Live Action)'
    I am not able to do so
    Rather I get a message saying that if I'm having trouble I should download the latest version of Adobe Reaer to my MAC, which I've done & confirmed that it's in fact installed
    I still can't download the required form
    They said I should contact Adobe.com if I'm having trouble.

  • How do I solve font changes when downloading a PDF document?

    When downloading some PDF documents, the font changes.  I have tried several troubleshooting solutions, but my issue was not solved.  What can I do to prevent this from happening or if it does, to remedy the problem?

    Yes, Ajlan, thank you. I solved the issue by opening PDF documents of unwanted fonts with another PDF document reader.  When I open my files folder, there is an option (drop down box) at the top that allows for me to choose from either Adobe Reader or PDF Vista.  It may have been there all along; I just didn't notice it until I recently had this issue.
    Take care :-)
    Angela

  • I downloaded ios7 and now some apps won't open even after resetting them. Don't won't to lose my info by deleting them and starting over. What to do?

    I downloaded ios7 and now some apps won't open even after resetting don't won't to lose my info by deleting and starting over.. What to do?

    Try close all inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • Just downloaded new iTunes, and now it won't open, Os10.6.8

    Just downloaded new iTunes, and now it won't open, Os10.6.8

    You did a d/l of the iTunes .dmg - did you install by opening the .dmg and following the dialogs?
    MJ

  • I downloaded a book but now it won't open.  Also I am unable to close ibooks.  Can anybody help?

    I downloaded a book and now it won't open.  Also I am unable to close ibooks.  Can anybody help?

    Hi marthaciffone,
    Thanks for using Apple Support Communities.  I would recommend first forcing iBooks to quit to see if that helps:
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/ht3411
    If the issue continues, most of the remaining troubleshooting steps in this article are applicable and might help:
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    Cheers,
    - Ari

  • This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash

    This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash, losing unsaved work. Windows Task Manager shows only a small percentage of cpu used and plenty of memory available. What is causing this?

    scholtzkie wrote:
    "Please wait...If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.   You can upgrade ...  For more assistance....    Windows is either a registered trademark...."
    This usually occurs if you use a browser that uses its own PDF viewer, not the Adobe Reader plugin; see http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • After downloading iphone pictures to desktop, itunes won't open.  I downloaded itunes 10.6 (64bit) but get "Do you want the following program to make changes to your computer?" Apple Inc.  I've clicked "yes", restarted the computer, and still no luck.

    after downloading iphone pictures to desktop, itunes won't open.  I downloaded itunes 10.6 (64bit) but get "Do you want the following program to make changes to your computer?" Apple Inc.  I've clicked "yes", restarted the computer, and still no luck.

    I also have the same problem, but the Software Updates tool doesn't recognise that Quicktime is out of date. Have you tried downloading Quicktime 7.7 Leopard from http://support.apple.com/downloads/#quicktime as this worked for me...?

  • PDFs saved from Safari won't open in Adobe Reader

    PDFs saved from Safari won't open in Adobe Reader - damaged file
    iMac late 2009 8Gb 3.06 Intel Core 2 Duo - Safari 6

    I encountered the same problem and tried doing what Suzanne did by right clicking the file and saving it to the computer first and then opening it.
    And then after double clicking the saved file windows prompted whether I want to open it with the newly installed Adobe reader 9.0 or with Microsoft Word. I chose the Adobe Reader 9.0 and clicked on the check box asking whether we always want to open this type of file using this program.
    I managed to open the file and best of all is after that I was able to directly double click on the pdf email attachments to open it.
    Seems like that we need to let windows associate the file type with the program first.

Maybe you are looking for

  • LOCK Text Box Question

    Hi guys, Is it possible to lock a text box but be able to edit the text? I don't want the position of the text to change but since we are using this page as a template I would like the text to be editable.

  • Account is blocked messege is display:

    Good Day everybody, Please help me out, I have few issues that, 1) I am seafarer and sailing from one place to another. We have internet on ship in which skype is the medium for connecting to our home. Skype was working good till 21 June, 2014. I had

  • Stupid problem wont go away

    Ok, It's like the third time I post about the same problem, my iPod's screen is broken on the inside. One day I turned it on, and half of the screen was blank, the biggest problem is that I'm from Uruguay, so I think there's only one apple store on t

  • I cant connect to my printer wirelessly

    Hello, I cant connect to my printer wirelessly, it doesn't show up on my devices list my printer is a  hp 5520e and my laptop is a hp g61, thanks.

  • Where's the Adobe AIR Extension for Dreamweaver CS5

    I see only the Adobe AIR extension for Dreamweaver CS3 and CS4. Where's the AIR extension for Dreamweaver CS5? ~Oscar