Downloading files of database in Google Chrome and Firefox

I use a modified version of the get_doc to view the files stored in the database.  I am able to use this code perfectly in Internet Explorer, but tries to display data in Firefox or Google Chrome open a page showing the data in a binary format.  In my view, that he can have something to do with headers.  The code is as follows:

create or replace

package body 'PKG_FILES' is

PROCEDURE pr_open_file (p_table in varchar2, p_id number, p_name in varchar2 default null, p_content in varchar2 DEFAULT 'CONTENT') HAVE

v_query VARCHAR2 (1000);

v_mime VARCHAR2 (48);

V_LENGTH NUMBER;

v_file_name VARCHAR2 (2000);

v_table VARCHAR2 (100);

Lob_loc BLOB;

BEGIN

v_table: = p_table;

v_query: = 'SELECT MIME_TYPE,' | p_content |', FILE_NAME, DBMS_LOB. GETLENGTH('|| p_content ||') OF ' | v_table | ' WHERE ' | v_table | "_Id =: id";

V_query EXECUTE IMMEDIATE IN lob_loc, v_file_name, v_mime, v_length USING p_id;

--

-set up the HTTP header

--

-Use a NVL around the mime type and

-If it is null it the value application/octect

-application/octect can initiate a download of windows window

owa_util.mime_header (nvl(v_mime,'application/octet'), FALSE);

-set the size so that the browser knows how to download

HTP.p ("Content-length: ' |") v_length);

-the name of the file will be used by the browser if users only one save as

HTP.p ('Content-Disposition: attachment; filename = "" | ") Replace (Replace (substr (v_file_name, InStr(v_file_name,'/') + 1), Chr (10), null), Chr (13), null). '"');

-close the headers

owa_util.http_header_close;

-Download the BLOB

wpg_docload.download_file (Lob_loc);

end pr_open_file;

end "PKG_FILES";

Someone had the same question or ideas?

Take a look at this thread, I was involved with earlier this week: Display PDF in the region

Maybe the proposed code it will help... It displays a PDF file in a table column to the user... Is this similar to your needs?

Thank you

Tony Miller

Software LuvMuffin

Ruckersville, WILL

Tags: Database

Similar Questions

  • now, I'm using windows 7 Home Basic but in my google chrome and firefox does not please give me suggestion?

    now, I'm using windows 7 Home Basic but in my google chrome and firefox does not please give me suggestion?

    Looks like you may have a virus or other malware. Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.

    -

    Microsoft has suggestions and offerings to

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus

    -

    Moderator Forum Keith has a few suggestions along this line to

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

    -

    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.

    -

    You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type CMD in the search box, right-click on CMD. EXE and click run as administrator. Then, from the command prompt type sfc/scannow.

    -

    Finally if all else fails, you can look at the rather cryptic system event log. To do that click on start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.

    `

    When you get your system in good working condition, I invite you to back up your system up to an external hard drive and make it regular periodic updates.

    -

    I hope this helps. Good luck.

  • I have problem getting m when you run Internet Explorer, Google Chrome and Firefox are... "Internet Explorer has stopped working", "Google chrome stopped working.

    Please someone help me with this problem, I m waiting for a solution

    The details are mention below...

    Google Chrome
    Signature of the problem:
    Problem event name: BEX
    Application name: chrome.exe
    Application version: 22.0.1229.79
    Application timestamp: 50616671
    Fault Module name: unknown
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception offset: 648f0d73
    Exception code: c0000005
    Exception data: 00000008
    OS version: 6.1.7600.2.0.0.768.3
    Locale ID: 16393

    Internet Explorer

    Signature of the problem:
    Problem event name: BEX
    Application name: iexplore.exe
    Application version: 9.0.8112.16450
    Application timestamp: 503723f6
    Fault Module name: StackHash_d893
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception offset: 28890d 73
    Exception code: c0000005
    Exception data: 00000008
    OS version: 6.1.7600.2.0.0.768.3
    Locale ID: 16393
    Additional information 1: d893
    More information 2: d893a36d76397fffb4086425a4f50b4c
    3 more information: c19f
    Additional information 4: c19f8f2799f6319e5b5618be5bfccaea

    Thank you...

    Looks like you may have a virus or other malware. Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.

    -

    Microsoft has suggestions and offerings to

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus

    -

    Moderator Forum Keith has a few suggestions along this line to

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

    -

    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.

    -

    You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type CMD in the search box, right-click on CMD. EXE and click run as administrator. Then, from the command prompt type sfc/scannow.

    -

    Finally if all else fails, you can look at the rather cryptic system event log. To do that click on start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.

    `

    When you get your system in good working condition, I invite you to back up your system up to an external hard drive and make it regular periodic updates.

    -

    I hope this helps. Good luck.

  • I keep trying to download google chrome and still get ERR 118

    Original title: ERR 118

    I keep trying to download google chrome and still get ERR 118 (err-connecting net time-out) how can it be solved please.

    I keep trying to download google chrome and still get ERR 118 (err-connecting net time-out) how can it be solved please.

    Try asking this question at the Chrome Forum:
    http://www.Google.com/support/forum/p/chrome/label?lid=43d46e8d92fef559&hl=en For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • BlackBerry Smartphones unable to download Google Chrome and Adobe

    I could not be able to download google chrome and adobe for my BlackBerry 9800. Please I need your help

    MOD EDIT: Subject changed to reflect a new topic

    I tried a lot of site including BlackBerry Word and does not, kindly help out me

  • I tried several times using IE, Chrome and Firefox browsers (win) to download the files for Indesign CS6 - all of these attempts have failed to extract the files. Other parts of the plant extract successfully, so I don't think I have

    I tried several times using IE, Chrome and Firefox browsers (win) to download the files for Indesign CS6 - all of these attempts have failed to extract the files. Other parts of the plant extract successfully, so I don't think that's my machine or OS (Win 7 Pro). I have been fighting for three days and am losing patience fast. Advice or assistance will be appreciated.

    I finally got it to work using a different machine and copy the files on a USB stick for transfer to the machine I need installed on!

  • why I can't download plucg-in wmp in google chrome?

    There is no sound on the videos or greeting on several sites since yesterday. A bar will appear with the following text: WMP is needed to view some items on this page - install the plug-in

    Try, but will not be installed. Go to this page
    1. Visithttp://www.interoperabilitybridges.com/wmp-extension-for-chrome
    2. Click Download now.
    3. Click Save the file in the downloads bar to confirm that you want to download the file. Don't worry - saving the file will not harm your computer. Learn more about downloading files in Google Chrome.
    4. Open the configuration file.
    5. Click run to start the installation wizard. Follow the instructions in the wizard to complete the installation of the plugin.
    6. Restart Google Chrome.
    It works no more.
    Very frustrating.
    Would appreciate the help.
    Sandor

    Hi Sandor,

    According to the description, you are facing problems with the download Windows Media Player plugin Google Chrome.

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following question:

    Did you try Internet Explorer and check to see if the problem persists?

    You can try to use Internet Explorer and let us know if the problem occurs with it.

    As you use Google Chrome, I recommend you to post your question in the support forum of Google Chrome for better assistance on the issue:

    Support for Google Chrome

    http://support.Google.com/chrome/?hl=en

     

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

     

  • My PC (Windows XP SP3) restarts unexpectedly when you run Picasa Google Chrome and since I installed Acrobat Reader 10 it also occurs with this program.

    Original title: unexpected reboot

    My PC (Windows XP SP3) restarts unexpectedly when you run Picasa Google Chrome and since I installed Acrobat Reader 10 it also occurs with this program.
                                                                                
    Maybe the problem is related to this message in log file:
    SSD HDD access service-service & can not start due to the following error: the system cannot find the path given.
    Source: Service Control Manager

    I would be very grateful if you can help me.

    Hello

    Step 1: Use disable automatic restart on system failure option and check if you can find any error message. Previous post the error message complete and accurate which could help us help you better.

    Steps to select Disable automatic restart on system failure option:

    1. reboot the computer
    2 start typing the F8 key
    3. you get it anticipated the startup option window
    4. Select DisaDisable automatic restart in the event of system failure

    Step 2: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.
    The System Configuration Utility dialog box appears.
    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

  • browsers (IE8, Firefox, Google Chrome and Opera) 32-bit and Vista 64-bit

    Hello

    I have a HP Pavilion dv2842se. I've had a little more than a year. IE 7 was originally installed with a version 32-bit and 64-bit. Not long after that I got it, the 32-bit version stops working. More specifically, as soon as I open the program it would be closed and completely unusable. I couldn't understand the question, so I installed Mozilla Firefox 32 bit and just used that. When the update of IE 8 came out, I downloaded and still had the same problem, so I continued to use Firefox.

    With the help of Mozilla has worked for me until about two weeks ago, when Mozilla started to become more and more reliable and now completely unusable. Assuming that it was a specific problem of Mozilla, I downloaded the 32-bit versions of Chrome and Opera and finished with all versions of four 32-bit navigation programs are the same.

    I realize that I can simply use the 64 bit version of IE8, as I did since I have no choice. However, there is a big problem with this. IE8 does not support Adobe Flash Player, which is required to run virtually all Web sites - including on the main site I use for my college classes. As the main reason that I bought this computer was for College, my computer as a whole is pretty useless to me without a functional browser that supports Adobe Flash Player.

    By the statement of HP, I tried to disable all add-ons, reset all internet settings and uninstall then reinstall Adobe Flash Player. I even on my own I've tried a system restore and scanned for viruses, spyware and software malware. Nothing has worked.

    Please, please, please if there is absolutely everything I can do to restore my browsers 32 bit in a usable state, please help me. I really do not have the money to buy a new computer, and 64-bit operating systems are almost now - standard, so there is no saying that if I bought a new computer for the same thing does not happen everywhere.

    Thanks for any help you can provide! It is much appreciated!

    Hi guys,.

    Paul - try to uninstall IE8 and run a startup repair.  If the Startup Repair cannot take care of the problem, try to do a repair on the System Installation.

    1 uninstall Adobe Flash Player:
    http://www.Adobe.com/go/tn_14157_fr
    "How to uninstall the plug-in Adobe Flash Player and ActiveX control.

    2. temporarily disable your anti-virus software and antispy/malware and reinstall the latest version of Adobe Flash Player:
    http://www.Adobe.com/go/getflash

    http://support.Microsoft.com/kb/957700/en-us
    "How to uninstall or remove Internet Explorer 8?
    When you remove Internet Explorer 8, your previous version of Internet Explorer is restored with your customizations (such as add-ins, Favorites and your home page).

    Then reinstall IE8.
    Please read and follow carefully:
    "HOW TO solve IE8 installation problems":
    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/9c5f373e-7667-4D6C-AA10-84185dccf887

    -Courtesy of Vincenzo Di Russo -.

    STARTUP REPAIR

    If you have a Windows Vista installation disc, you need to restart (boot) your computer using the installation disc. If you do not restart your computer from the disk, the option to repair your computer will not appear.

    If you have a Windows Vista installation disc:

    1. Insert the installation disc.

    2. restart your computer.

    Click the Start button, click the arrow next to the button lock and then click on restart.

    3. If you are prompted, press any key to start Windows from the installation disc.

    Note: If your computer is not configured to start from a CD or a DVD, see the documentation provided with your computer. You may need to change your computer's BIOS settings. For more information, see BIOS: frequently asked questions.

    4. choose your language settings, and then click Next.

    5. click on repair your computer.

    6. Select the operating system you want to repair, and then click Next.

    7. in the System Recovery Options menu, click Startup Repair. Startup Repair can invite you to make choices as it tries to solve the problem, and if necessary, it may restart your computer, because it makes the repairs.

    REPAIR INSTALLATION

    You will need all your media software, Windows Vista disk and backup of your data to perform either installation.

    http://support.Microsoft.com/default.aspx/KB/918884

    HOW TO PERFORM A REPAIR OR UPGRADE INSTALLATION INPLACE

    If you have the Windows Vista DVD, you can try an Inplace (repair) upgrade on Vista - this will not work if all you have is a DVD of Windows recovery.

    If you do not have the Windows Vista DVD and have only the recovery media, you know someone who has the exact same Version of Vista like you who has the Vista DVD?  If so, borrow their DVD but do "not" to use their product key, use your if requested a product key.  If you don't have or can't get a Vista DVD, the following steps will not work with the recovery media and you may be forced to do a clean install.

    Repair facility:

    You can reinstall your copy of Vista while keeping your files, settings and programs by performing a repair install or an upgrade on the spot with the following steps: (Note: this does not always solve all the problems, especially if the corruption was caused by a 3rd party program or service, you may need to do a clean install) If this is not successful)

    <><><><><><><><><><><><>

    Please make sure that you back up all the important data before you continue. Please see: methods for backing up your files.

    Always make sure that you have the means to reinstall your programs, or by an installation disc or access to the installation files.

    <><><><><><><><><><><><>

    1. Insert the Windows installation disc in your computer's DVD or CD drive. You must start Windows installation while running your existing version of Windows.

    2. on the page to install Windows, click install now.

    3. on the Get updated important for installation page, we recommend getting the latest updates to help ensure a successful installation and to help protect your computer against security threats. You will need an Internet connection to get the installation updates.

    4. on the Type your product key for activation page, we strongly recommend that you type your 25-character product key in order to avoid problems during activation.

    5. on the, please read the license terms page, if you agree to the terms of the license, click on I accept the terms of the license.

    6. on the installation type you want? page, click upgrade to begin the upgrade. You can see a compatibility report.

    7 follow the instructions.

    Note: If your installation disc doesn't include SP1, and you are updated to him, then you will need to uninstall it before you perform an upgrade installation. Start-> Control Panel-> programs-> see installed updates, select Service Pack for Microsoft Windows, and then click on uninstall.

    Note: The following parameters will be reset by default:

    Its computer system

    Device drivers

    Visual effects

    Windows Mail

    Windows services

    If you notice missing files after the upgrade, look in the following folders:

    C:\Windows.old

    C:\$INPLACE.~TR

    C:\$WINDOWS.~Q

    These files can be eliminated with disk cleanup as "Files ignored by Windows upgrade".

    Delete files using disk cleanup

    Kanewai - try to uninstall and reinstall IE8

    Let us know if this helps,

    Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I use google chrome and lately my screen started flashing intermittently then on the internet.  Any suggestions?

    I use google chrome and lately, my screen begins to blink intermittently during the use of the internet. It flashes maybe several times in a minute... I uninstalled chrome and reinstalled... no change. This just started about a month ago.  Suggestions?

    Chrome support

  • How can I get the web page translated from English? IM translator does nothing. I was getting this feature with Google Chrome and Maxthon.

    Recently, I installed the latest version of Firefox.Iwas happy to find characteristic imtranslator in this version. But the need, it don't nothing. To several times when I was faced with Web pages in German and Chinese, I tried to get them translated to English with the help of translator-ImTranslator. But there is no reply from her. Previosly, I used Google Chrome and Maxthon.They were just with the click of a button. But Firefox disappoints me. In fact I think to return to Maxthon.If, there is a way to translate Web pages in its entirety in Firefox please notify so that I can stick to.
    Thanking you,
    pnsdhrn

    You can use the keyworded bookmark shortcuts in Firefox to call the Google Translator, see

  • Why doesn't Yahoo Mail appears correctly on Firefox as it does on Google Chrome and IE?

    On Firefox, when I try to read my Yahoo mail, the display shows a tiny completely unreadable image on the page. On Google Chrome and IE, when I click on the mail icon, the page appears correctly. A second user account on my computer does not have this problem.

    You are welcome

  • When I try to open a chanel online, it seems to me the message: Microsoft Visual C++ Run time Library Error.Google Chrome and to view a chanel online that I use and the IE toolbar.

    original title: Hello!

    Hey, I have a question. When I try to open a chanel online seems to me the message: Microsoft Visual C++ Run time library error made in Google Chrome and to view a chanel in line that I use and IE toolbar. I'm waiting for a response. Thank you!

    Hello

    1. is this problem only occurs in Internet Explorer?
    2 may I know which version of IE are you using?

    Method 1:   
    If the problem occurs on Internet Explorer, try the link below.
    http://support.Microsoft.com/kb/822521

    Method 2 If on Chrome, I suggest you get contact with Chrome Forums.
    http://www.Google.com/support/forum/p/chrome

    Hope this information helps you.

  • I use Google chrome and shock wave crashes all the time

    I use Google chrome and shock wave crashes all the time

    Google Chrome and Adobe Shockwave aren't Microsoft products.

    Without a message from the error 'event', he probably does not have an answer that remove and re-install the latest versions of each.

  • Cannot install Google Chrome and Mozilla Firefox.

    Original title: google and firefox installation

    While I am able to connect on explore cannot install google and firefox. Some software is an obstacle.

    Hey Maw,.

    To provide the proper resolution, I would need more information on your side.

    1. deal with any problem during the installation of other programs?

    2. what exactly happens when you try to install Google Chrome and Mozilla Firefox?

    3. did you of recent changes on the computer before this problem?

    This problem can occur if the program was not completely installed, or because of Windows Installer issue.

    Method 1:

    I suggest you to run the Microsoft Fixit and check if it helps.

    Solve problems with programs that cannot be installed or uninstalled
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Method 2:

    If the problem persists, I you suggest to set up the computer in a clean boot state and then try to install the Google Chrome and Mozilla Firefox.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note:  After the boot minimum troubleshooting step, follow the "How to reset the computer to start as usual after a clean boot troubleshooting" section in the link provided to return the computer to a Normal startup mode.

    Method 3:
    If the problem persists, I suggest you to try the steps in the articles and check if it helps.

    Other (offline) installer of Google Chrome (Windows)
    http://support.Google.com/installer/bin/answer.py?hl=en&answer=126299

    Install Firefox on Windows
    https://support.Mozilla.org/en-us/KB/install-Firefox-Windows

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

Maybe you are looking for

  • My phone ZTE OPEN C Firefox OS uses all my data!

    My phone is using a lot of data even in the night when I'm asleep. My usage report says that I've used 167 MB but AT & T says I used almost 3 GB. So I disabled the data on the phone and he stopped. My next event is the messaging application. I notice

  • My hotmail home page is HUGE.

    There is no drop downs or screens to fix the problem. I can't read mail without scrolling from left to right because the police is about 16. Hotmail support suggests that contact my browser to get answers. How can I make it smaller?

  • Fan - g6 2015tx grinding noise

    before, it just happened once a week, then continued to increase the frequency of the noise and now whenever I start my laptop it starts just what makes this RRRRRRRR and noise. Its out of warranty and in India. is there a fix out there for this prob

  • Mini HP 110: error fatal system shut down cnu928bph

    When I turn on request current password I forgot the password n I've been on it so uncertain why he asks

  • standard with a state machine controls

    Hello I read with VISA to a serial device. I am writing for the series the start character and the device sends data. Now after reading the data, I want to stop sending in writing to the series a stop character. Separate loop is playing. I want to do