Download the file from the server db at the local level
Hi allAfter the implementation of the procedure, I found here [http://docs.oracle.com/cd/E10513_01/doc/appdev.310/e10497/up_dn_files.htm#CHDECDAJ] I'm trying to use a different procedure to download directly from an oracle directory which is
PROCEDURE DOWNLOAD_PUBLIC_DIR (v_file_name varchar2) as
v_length number;
bf BFILE;
Lob_loc blob;
v_mime varchar2(255);
vexists BOOLEAN;
vfile_length NUMBER;
vblocksize NUMBER;
begin
UTL_FILE.FGETATTR('PUBLIC_DIR',v_file_name,vexists,vfile_length,vblocksize);
if vexists then
DBMS_LOB.createtemporary (Lob_loc, TRUE, DBMS_LOB.SESSION);
bf := BFILENAME('PUBLIC_DIR', v_file_name);
DBMS_LOB.FILEOPEN(bf,dbms_lob.file_readonly);
DBMS_LOB.LOADFROMFILE(Lob_loc, bf, DBMS_LOB.GETLENGTH(bf));
DBMS_LOB.FILECLOSE(bf);
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 );
end if;
end;
then run itGRANT EXECUTE ON DOWNLOAD_PUBLIC_DIR TO PUBLIC
In my apex application, I create an element display only and on the label, I try to use this in the label<a href="DOWNLOAD_PUBLIC_DIR?v_file_name='myFileOnDBServer.xls'">Download</a>
or even that in the source (as I already do in other parts of the application)select '<a href="pspappweb.DOWNLOAD_PUBLIC_DIR?v_file_name='||'myFileOnDBServer.xls'||'">Download</a>' from dual
When I click on the link in the message toNot Found
The requested URL /pls/apex/DOWNLOAD_PUBLIC_DIR was not found on this server.
I'm obviously missing?Thank you all.
Alex
Published by: OraclePSP on November 29, 2012 5.58
Hi Alex,
This is probably because of the function of validation of request, in your mod_plsql DAD, EPG or Apex listener config. Beware of the wwv_flow_epg_include_modules.authorize. You can enable additional entry points by crushing the procedure APEX_040200 wwv_flow_epg_include_mod_local. It is described in apex/core/wwv_flow_epg_include_local.sql.
Kind regards
Christian
Tags: Database
Similar Questions
-
When I use the socks proxy in firefox, I can only navigate through internet and cannot download any file from the internet.
I have no problem when using HTTP proxy servers and have no problem managing which connection to internet without proxy.
I found this problem due to the integration of the browser evolved in the idm software, and when I turn this option off in idm problem will be solved
-
My laptop does not start at the top. It indicates that the following file is missing or damaged WINDOWS\SYSTEM32\CONFIG\SYSTEM.
Download this file from the Microsoft Web site. I put the XP CD in and it starts downloading files but it asks what windows installation I want to and don't gives me one option other than press "Enter" to abandon.
See if anything here helps-
How to recover a corrupted registry that prevents Windows XP startup
http://support.Microsoft.com/kb/307545Install and use the Recovery Console in Windows XP
http://support.Microsoft.com/kb/307654See also
How to Troubleshoot Registry Corruption issues
http://support.Microsoft.com/kb/822705How to fix a missing or corrupt Windows\System32\Config\System file
http://xphelpandsupport.MVPs.org/how_do_i_repair_a_missing_or_cor1.htmTaurArian [MVP] 2005-2010 - Update Services
-
Loading of the Internet
Whenever I try to download a file from the internet it get the same message everytime "he could not open the Internet Explorer Web site. The site requested is either not available or cannot be found. "Please try again later ' this happens for all sites, I try to download from... Please help.Hello
To work around this problem, follow these steps:
1. start Internet Explorer.
2. on the view menu, click Internet Options.
3. on the Advanced tab, clear the do not save encrypted pages on the
disk check box.
4. go to the page where you received the error.
5. right click on the file link, click on save target under, select one
destination and then click Save.
Good luck! -
Download large files from the internet
I can't download large files from the internet in Windows 7 to SBS 2003 domain. What is the solution?
Hello
Thanks for giving an opportunity to help you with your concern for Windows to Microsoft Community!The question you have posted is better suited for the TechNet forums. I suggest you to report the issue in the following link for assistance:
http://social.technet.Microsoft.com/forums/en/smallbusinessserver/threads
I hope that helps!
If you need help on Windows please keep us informed.
We will be happy to help you! -
I'm trying to download a file from the active section of the creative cloud, but it is not letting me. It is saying I need a simple or full membership, which I do. I have the plan composition of the photographer. I made sure I'm connected, but it is still trying to put me on a plan, which I have. Help please!
Hashim, see the FAQ section on: CC help | Creative market Cloud
-
Please help, I downloaded 3 files from Adobe for CS3, but one of the .exe files cannot be due to due to a (file archive part missing, all parties must be in the same folder message)
Hi Francis,.
Make sure you download both files from there. https://helpx.Adobe.com/Creative-Suite/KB/CS3-product-downloads.html
Compare the size of the file and you will have to perhaps disable all anitvirus during download and install it.
Thank you
Scott
-
How can I overcome the Abobe Reader message whenever I try to download a file from a web site: Adobe Reader outdated! Subsequently, I am unable to download and print the file
You do not give us the exact words, but I guess that this message appears on the screen, like on a regular PDF with this message. If so, ignore the message and save the file in the usual way on your desktop. Now open in Adobe Reader.
-
After downloading my file from the word document is mostly gibberish. Why? The service used "exportPDF.
Hi shelbyrn,
The quality of conversion is really depends on the quality of the original PDF file. Please see Will Adobe ExportPDF convert text and shape... | Adobe Community. Do you know what who or how the PDF was created?
You can have better luck by disabling OCR as described in this paper: How to disable the optical character recognition (O... |) Adobe Community. (Note, however, this is option is is not optimal if the PDF file is created from a scanned document, you wish to OCR enabled to convert the text from the image in the PDF file to editable text).
Best,
Sara
-
Could not download the file of the cloud at the local level [iOS]
I couldn't download my file of cloud at the local level in Adobe acrobat ipad app
!
Hello
Do you want to take a look at the post following the Forum to see if it answers your question?
How can I download document of cloud at the local level to access offline on iPad?
Thank you.
-
How do I download an image from a server and store it in EncodeImage
How to download an image from a server and store it in EncodeImage?
It allows you to create an EncodedImage object. so that you can upload an image from a server, you can use HttpConnection to send a request to your server. Then, your server can return the image file. Since he will cross the stream, you can read and store it in a "byteArray". so the ByteArray, you can generate an EncodedImage by calling the EncodedImage.createIncodedImage (byteArray). now that you already have a coded picture.
-
Download a file from a local data store
Hi all
I was wondering if it is possible to generate scripts downloading a file from a local data store on a Windows Server? Also, there are scripts available to perform such a task?
Thank you
Hello
Just guessed myself using the cmdlet copy-datastoreitem - good KB article here
After the connection to your vCenter server, connect to the data store and mount the source as a PSdrive data store, and then use the cmdlet. It also works well download a data store and the downloading of a data store: just spent around objects in - point and - Destination.
At first glance, it seems that you need to know the source path of the data store.
$dstore = get-datastore "YourDatastoreName" New-PSDrive -location $dstore -name dStore -psprovider vimdatastore -root '\' copy-datastoreitem -item dStore:\VMFolder\VMConfig.vmx -Destination c:\SomeFolder\vmconfig.vmx
-
iI has downloaded a file from eopenbox when I tried to open it I tells me safari cannot open the file because there are no applications available, how do I do this.
Rob
What is the file extension?
-
Unable to download a file from microsoft, I need file msxml.msi Service pack 2 for Windows XP to download the McAfee antivirus software
I just downloaded MSXML 4.0 Service Pack 2 (Microsoft XML Core Services) from here:
http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=3144b72b-b4f2-46DA-B4B6-c5d7485f2b42
You say that you can not download, but do not say what is happening when you try to download and my crystal ball is on vacation this week. Stupid ball...
-
Need help on transfer of files from one server to another server.
Hi all
I need help on transfer of files from one server to another server (Unix box to another Unix machine) using jdeveloper and BPEL process.
I'm new to these technologies, can you please help me on this. If you encounter documents please share it with me.
We use BPEL and Jdeveloper 10.1.3.3.0 version
Thanks in advance!
Concerning
Vincent
Published by: user10263255 on 15 Sep, 2008 12:25Vincent,
One of the options I can think of is creating mount points on the boxes of unix and then using the File adapter.
-
I connect to internet at the top 3 mobile broadband using the supplied usb Huawei 3 modem. It was fine for the first 4 days, it was working perfectly until 2 days ago. Now it connects fine but after about 1 minute of connection (sometimes more, up to 5 minutes max) the connection of the changes at the local level only. I searched the forum and website I can find solutions, but nothing seems to work. If I click on diagnose and repair I get an answer that is different each time, such as 'There could be a problem with one or more network adapters on this computer' or "Cannot communicate with the DNS server" or sometimes it says there is no problem even if it doesn't quite work. Sometimes disconnect and then reconnect works but then after a minute it goes to the local level only again. Any help would be appreciated, it gets very annoying to have to disconnect and reconnect every time that I need to go to another page.
Here is the procedure to empty the DNS: http://www.mydigitallife.info/2008/08/21/how-to-flush-and-reset-dns-cache/ - but even if it's worth a try, I don't know it can solve your problem.
If this does not work, then I suggest strongly since it's only a week or older that return you it to where you have it for a replacement or a service while it is still covered by the warranty. There are several possible causes and we could spend a lot of time searching to find that it's a hardware problem. They also know their systems better than we do, and maybe it's a simple configuration problem that has not been defined in law or has been accidentally changed after the first 4 days. In addition, more you mess with it, you, more likely they will tell you caused the problem and the warranty - and you certainly don't want that.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
Maybe you are looking for
-
Satellite Pro M30: What DVD burner is compatible?
Hi people, ask yourself if you can help. I have a sat Pro M30 but it came with a CD-RW/DVD-ROM drive. I decided that I would be able to write DVDs with it also. Can someone point me in the direction of a substitute for the current drive - I really do
-
When I try and open any application on my PC, I get the error message "choose a program to open this file with. I have not even that by trying to open the cmd window or all the apps in the control panel. I think I have a virus, but can not run any an
-
SP3 update: now I can't system upward!
I ran this update SP3. Now, my system does not start - even in SafeMode! I have recovery self-made discs (2). I can restore my system without losing the Post Microsift Office factory (installed)?
-
error 0x800106ba my windows defender is turned off and turns back on
Why doesn't windows Defender back on?
-
Our HP 2540 stops during a print job printing after 1 or 2 pages. The last page prints only partially. We get an error that the document cannot be found.