Opening a pdf from a blob

Hi Guys,
I know this is a borderline ApEx problem but I have a page whose sole job is to open a pdf from a blob stored in the database.
This code works for most client machines:
DECLARE
l_blob blob;
BEGIN
SELECT letter INTO l_blob
FROM letters
WHERE lett_id = :P44_LETT_ID;
-- owa_util.mime_header('application/pdf',false);
-- tried pdf and octet they work the same?????
owa_util.mime_header('application/octet',false);
htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
owa_util.http_header_close;      
wpg_docload.download_file(l_blob);
END;
On some machines I get 'Windows cannot open this file ...File: f[7] ...To open this file..........
On most machines this works fine.
I haven't got it to fail with Firefox yet, just IE but only a few machines running IE. Client getting annoyed and I starting to stress.
Many thanks
Gary

Have you already tried adding
htp.p('Content-Disposition:  attachment; filename...as described here?
http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm#CIHDDJGF
Maybe it solves the problem, in case IE is a little bit picky. But I really don't know.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • I'm trying to open a PDF from Safari with iBooks, but when I choose "Open with ..." in Safari, only Pages and Dropbox show as options.  I'm running iOS 7.1.2 and iBooks 3.2.  Thanks for any ideas!

    On my iPad, I'm trying to open a PDF from Safari with iBooks, but when I choose "Open with ..." in Safari, only Pages and Dropbox show as options.  I'm running iOS 7.1.2 and iBooks 3.2.  I have rebooted the iPad and that did not help, and reinstalled iBooks, which also changed nothing.  Thanks for any ideas!

    Yup, it was uploaded to our school Wiki as a PDF, and Pages did open it.  I was then able to move it to iBooks, but I'd rather avoid the extra steps.

  • New Mac, fresh install of Mountain Lion When I click to open a .Pdf from a web page,while in Safar, I get a black window Nothing opens in Preview or in Acrobat No option to download

    New Mac, fresh install of Mountain Lion
    When I click to open a .Pdf from a web page,while in Safar, I get a black window
    Nothing opens in Preview or in Acrobat
    No option to download

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type of copy paste the following:
    /Library/Internet Plug-Ins
    Click Go. If you see this file:  AdobePDFViewer.plugin
    Drag it to the Trash, empty the Trash.
    Quit and relaunch Safari.

  • I am having an issue with my adobe acrobat 9 pro. Every time I try to open a pdf from someone it opens it up with my free adobe reader rather than the Acrobat 9 pro so then I don't have all of the functions of 9 pro. How do I get it to open with 9 pro ins

    I am having an issue with my adobe acrobat 9 pro. Every time I try to open a pdf from someone it opens it up with my free adobe reader rather than the Acrobat 9 pro so then I don't have all of the functions of 9 pro. How do I get it to open with 9 pro instead of the free reader?

    It may depend on the plugin that is loaded into your browser. However, right click on a PDF and select the Open With option and go to the default button to select Acrobat as the default. That might do it.

  • Trouble with permission to open current PDF from one user to another user. what is the cure. i am running nthe current Server and updated Os 10.9.2

    Trouble with permission to open current PDF from one user to another  What is the cure ? I'm running the latest Server and OS 10.9.2.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • How do I open a PDF from an online site?

    HHow do I open a PDF from an online site

    Hi,
    you might find an answer in How to open PDF documents in Adobe Reader (iPad on iOS 7 version)
    thank you

  • How to open a pdf from pdf target with page no using javascript

    Hi
    How to open a pdf from pdf target with page no using javascript
    Thanks in Advance.

    Hello,
    <p>Web.show_document calling .htm files saved on disk.....</p>
    Francois

  • I can download and open pdfs on my macbook air.  Why can't I open a pdf from a webpage?

    I can download and open pdfs on my macbook air.  Why can't I open a pdf from a webpage?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go > Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Open a pdf from a buffered stream versus file system?

    With the PDF Library SDK is it possible to open a pdf from a stream versus the file system?

    Yes, but not trivially. You would have to implement your own
    ASFileSys, which is a method for accessing "files". This is a
    collection of methods, rather like an object oriented class, but in C.
    You would have to support get, put, open, random access, file naming
    etc.
    Aandi Inston

  • When trying to open a pdf from a shared network folder I get an error

    hello,
    When trying to open a pdf from a shared network folder I get the error: 'there was an error opening this document the document cannot be found'. The share is on a Windows 7 machine and sharing to a OS X 10.7 Machine. Permisson has been given on the share for 'Everyone' read and Write, and is mapped to the 10.7 machine through the 'Connect to Server' in finder with login credentials.
    Can you help please?
    Kind regards,
    Chris

    This is in Internet Explorer 6 (yes, horrible, I know), but we use a standardized image where I work, with pretty intense GPO's.
    Don't know what happens if you right-click the link; but from any other machine (with the same image) the same link will open with all three options "Open", "Save", and "Cancel".  These are not freshly imaged machines, so some setting must of been changed along the way to make this happen on this user's computer.
    Repaired Acrobat, but this resolved nothing.
    Also checked in IE to make sure that Adobe was enabled under the Programs tab.
    Also, the option to view a pdf within the browser is not turned on.
    Any other ideas?

  • TRYING TO OPEN A PDF FROM E-MAIL

    when I try to open a pdf from an e-mail it goes to office word and is uninteligible to read. please HELP!

    Sounds like some file association is broken; repair the installation (from Help menu), or uninstall/reinstall Reader.

  • Open an PDF from an iBook

    Hi,
    Is it possible to open an PDF from an iBook, I know I can use an external link but the PDF will be already installed/loaded in the bookshelf.
    Thanks

    Thanks for your response, I thought I might ask just in case there might be a way around the problem.
    Thanks!

  • Cannot open another PDF from within a PDF RDR 9.1

    Hi, all. When I or one of our users tries to open a PDF from a "Table of Contents" PDF , i.e.
    Table of Contents for Job CD30A9
    Guide
    42ACC845.pdf
    42ACC84D.pdf
    42ACC84E.pdf
    42ACC84C.pdf
    The guide opens but not the other documents. The other documents open fine if clicked on individually. They are password protected (all but guide.pdf).
    This is what I get with Process Monitor:
    1:52:45.5500328 PM AcroRd32.exe 2372 RegOpenKey HKLM\Software\Adobe\Acrobat Reader\9.0\Installer SUCCESS Desired Access: Read
    1:52:45.5500859 PM AcroRd32.exe 2372 RegQueryValue HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer\VersionMax SUCCESS Type: REG_DWORD, Length: 4, Data: 589825
    1:52:45.5501239 PM AcroRd32.exe 2372 RegQueryValue HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer\VersionMin SUCCESS Type: REG_DWORD, Length: 4, Data: 1
    1:52:45.5501694 PM AcroRd32.exe 2372 RegCloseKey HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer SUCCESS
    Any ideas?

    Can you insert the PDF file in the Word document in another format to make it clickable in the newly converted PDF?

  • When I open a PDF from an email Time Machine starts

    Everytime I open a PDF from an email Time Machine starts & freezes my 4k iMac for about 30 seconds, it's annoying.

    Although the problem is not the same, please follow the instructions in this support article to reset the Launch Services database. If you don't already have a current backup, back up all data before proceeding. You may have to log out or restart to see a change.

  • Have downloaded both Adobe reader and PDF reader, but when I attempt to open a pdf from a site on safari, it starts to load, then disappears.  Any way to fix this?

    Have downloaded both Adobe reader and PDF reader, but when I attempt to open a pdf from a site on safari, it starts to load, then disappears.  Any way to fix this?

    Try quitting the PDF apps and Safari like I describe below. Then reset the iPad. After it starts try again.
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

Maybe you are looking for

  • Importing Adobe Photoshop Album SE Albums into iPhoto

    Is this possible? I've got a ton of images that I organized in Adobe PASE using the albums feature, not tags. I see that iPhoto has a very similar system, but so far as I can see, there's no easy way to bring that organization over save manually. Ple

  • Ms Reporting Services

    Hello , I am trying to run SQL Reporting Services from a CF application. I have seen other posts on this but I have not found an answer. The MS Reporting services wsdl file is at http://xxx.XX.XX.XX/reportserver/reportservice.asmx I can get the wsdl

  • Can values in matrix cells flow across the pages (Reports 6i)?

    Hi, I have to display more than 1000 char in a matrix cell. The report errors out when the values in the matrix cells exceeds the page. Can values in matrix cells flow across pages? any help on this? Thank You, -- Raja

  • Awful apple mouses!

    I recently switched from my windows machine to a new imac G5. What a beautiful computer! One of the only things wrong with it is the horrible mouse tracking system. I have used apple comps before and they are all the same, the mouse is too slow and i

  • Best Quality Export Video

    Hello, I just bought the new Ipod video, and I want to convert my footage. I am an Editor from the Netherlands, and I use 25frames/ps and Dv-quality. What is the best output to have? I use "Quicktime" and "Videora Ipod converter". Is .mov the best? O