Download the file SQL PL - name of the file appears as the name of the procedure?
HelloI followed the article below to create a download link to my db BLOB, but when you download the files, the name of the file appears under the name of procedure rather than the desired file name.
http://download.Oracle.com/docs/CD/E10513_01/doc/AppDev.310/e10497/up_dn_files.htm#CIHDDJGF
any ideas why this happens?
Thank you
J
Hello
I posted my example of work on apex.oracle.com
EDIDEV workspace
USER username
password jadohi
Application is called app download - 29208. Try to download and import it into your workspace and see if it works. There is also a script file called 29208.sql in the workshop/SQL Sql Scripts you could download with the proc and table scripts.
Concerning
Paul
Tags: Database
Similar Questions
-
Download the procedure not found on the server.
Hello
I created a feature to download files using the Oracle (http://download.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CIHBFCDH) tutorial. The files are copied from the flow table in a custom table named SR_ATTACHMENTS with the following structure:
Default primary key Type Nullable data column name
IMAGE_ID NUMBER - 1
NAME VARCHAR2 (60) Yes.
Filename VARCHAR2 (60) Yes.
Mime_type VARCHAR2 (60) Yes.
DOC_SIZE NUMBER Yes-
CREATED_BY VARCHAR2 (255) Yes.
DATE of CREATED_ON Yes-
Content_type VARCHAR2 (60) Yes.
BLOB BLOB_CONTENT Yes-
REQ_ID NUMBER Yes-
There is a file record in the SR_ATTACHMENTS table:
SELECT MIME_TYPE, BLOB_CONTENT, filename, DBMS_LOB. GETLENGTH (blob_content)
OF SR_ATTACHMENTS
WHERE IMAGE_ID = '41090122232687300';
Results:
'MIME_TYPE', 'BLOB_CONTENT', 'FILENAME', 'DBMS_LOB. GETLENGTH (BLOB_CONTENT).
' application/pdf', "[no support for data type]", "relish_menu.pdf", "90353"
Here is the link which is built in the apex in the column links:
#OWNER # .file_download? p_index = #IMAGE_ID #.
Here is the link as it appears on the page when the cursor is placed:
http://My_server:7777/pls/Apex/PRSVCREQDEV.file_download?p_index=41090122232687300
When the user clicks on the link, I get the following error:
Not found
The requested URL /pls/apex/PRSVCREQDEV.file_download was not found on this server.
Here is the procedure:
CREATE OR REPLACE PROCEDURE file_download (p_file in number) AS
v_mime VARCHAR2 (48);
V_LENGTH NUMBER;
v_file_name VARCHAR2 (2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, filename, DBMS_LOB. GETLENGTH (blob_content)
IN lob_loc, v_file_name, v_mime, v_length
OF SR_ATTACHMENTS
WHERE IMAGE_ID = p_file;
--
-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 file_download;
/
Grants are:
Name of the constituent object of the privilege dealer
NO PUBLIC PERFORMANCE NO PRSVCREQDEV FILE_DOWNLOAD
Any help is greatly appreciated!
Thank you
MattHello
No problem, by the way, don't forget you can assign points to get useful answers here ;)
John
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd -
Downloading files has become a problem for me. Internet most of the files for example software download from Blackberry.com.
When I go to download the file, the name is changed and the .exe extension is changed.
Just change the extension of .exe file (.node1) and it will work. has worked for me...
-
I want to see the name of a file before I download it as an attachment, but the names of files in the file download blue box only see the part of the name. I click on "View files flaps" but who only works in windows Explorer. I need the full name in the window of blue line screen upload. How then can I list instead of several columns of short filenames?
Thank you
Bess in Carrollton, Texas
Hi Bess,
It would be better that you could provide more information on this issue.
What application you are trying to download the file? Is any e-mail Application or SkyDrive?
If you try to upload a file with a long file name to the SkyDrive or Mail application, it wouldn't show the full name of the file when the download of the file. It shows only a part of the name of the file. It comes to the design of these applications.
To find the full file name, the only option is to rename the name of the file to a short name and then download the files on the machine or SkyDrive App.
I hope this helps.
-
downloading a file, rename it to php and returns the new name of Flex
Hello!
I download a file in Flex, but I want to rename the file in php.
However, I need flex for the new name of this file.
I thought I could echo this string to use in the event of upload.complete, but the goal comes with the real/old file name.
How can I get the file renamed?
It's my php:
<? PHP
$file = $_FILES ['Filedata'];
$tempFile = $file ["tmp_name"];
$fileName = $file ['name'];
$autoRename = SDAKJHASD.jpgIf ($file ['error'] is UPLOAD_ERR_OK)
{
move_uploaded_file ($tempFile, ".") / files / "." $autoRename);
echo $autoRename; <- HOW TO RETRIEVE THIS STRING IN FLEX?
...
...
? >Thank you!!!
CONSTRUCTION ~Notice the 'data' part listed there. Your function would seek to event.data for example. You can send gross return strings, xml, or anything you want.
-
I AM NOT ABLE TO DOWNLOAD THE ADOBE READER SOFTWARE, BECAUSE I FORGOT MY USER NAME AND A PASSWORD.
The password you need isn't Adobe. Like most software, you need your own computer administrator password to install or update software. You (or someone) have chosen this the first time that the machine was running.
-
Now that my project from FCP 5 minutes video clip is over, even if I am a complete and total novice to the iMac, I nevertheless managed burned a DVD via the file > share the menu option and everything went well, but now I want to download the .mov on YouTube, but is unable to determine to WHICH many files created in this project is the one to download! It seems that many files are named "Untitled" and I do not seem to know how to find ONE with a .mov extension.
At the top left of my screen of the FCP is the list of "Libraries" that after that I developed all the arrows to point down looks like this:
Libraries
Untitled
Smart collections
30/06/16
Age of television
If you haven't guessed, the name of my project is "T.V. Age" and I expected to find somewhere on the computer, a file named, 'T.V. Age.mov' or somethjng like that for me to download on YouTube, but I can't find THE .mov files. Maybe I don't know how to market the Finder option to display filenames WITH extensions?
I'm hoping that someone with enough time on their hands and understanding in their hearts will take the time to help me locate the .mov that as well as help me correctly name this library Untitled in the zone without good libraries course disrupt the integrity of the completed video-music that is always open on the timeline, even if I don't there anymore since my work with her is over , but the only "CLOSE button" I see is 'close library Untitled' button on the file menu. I don't see even its end (the *) project button! The only way I see how close my project is to close the program, but I doubt if it's true. Any help will be greatly appreciated.
Tony
If you did burn a DVD, then you did burn a DVD, you export any file can be used. Share > main folder > Audio + video and download that ProRes file resulting. Or use the built-in YouTube option to upload directly to YouTube.
You don't "close" anything in the part of the timeline, it is useless. You would simply open a new project or other media type of container, in the part of the timeline.
-
Download the vcard with national characters in the name
How can I download a vCard with national characters (UTF-8) in the name?
Download site is Windows with ASP.NET 4.0
I tried with ContentType: "text/x-vcard;" and "text/x-vcard; charset = utf-8; »
Click on the download link Mitelcmg.omnigate.se/vcard?id=rousk_bjorn_raksmorgas
Download the file on iPhone
When I opened this file in the Contacts, the name of the characters special aao are all looking 'strange '.
Works very well on Android.
I think you need to open the map with a text editor and resave as perhaps utf-16 or utf-8 with BOM.
-
How can I change the settings to have an massage guest when I want to download a file duplicate
When I download a file, if the same file name already exists in the same folder to download, firefox downloads the file and renames it by adding the name of the digital file (1). I want that the combustion chamber to give me a prompt when same file already exists, rather than rename automatically by adding the suffix (1)
otherwise the DownThemAll Download Manager addon would set it in the options panel: https://addons.mozilla.org/firefox/addon/downthemall
-
Then when I save or download a file, it is in reverse alphabetical order. I can't seem to make it back, and I'm sure that I changed all the settings that would entail. Any ideas on how to fix it?
Thank you in advace
Not sure, it looks like a Windows tweak. The open file dialog box is a feature of Windows. This happens on other programs? You can try to click on the last icon on top, change Detailsview, click the name header, then the Type column header until the record comes on top in alphabetical order.
-
Have enabled internet connection when you are connected to the web page and domain name when I try to download the .pdf forms, open app Adobe10 but file download transfer stalls saying unable to detect the internet connection? I am already connected, I don't understand
file transfer download stalls saying unable to detect the internet connection? I am already connected, I don't understand
A firewall can cause that. For example the program tries to link may need to be allowed to pass through.
---
-
Original title: download problems
After that I downloaded a file, it is deleted when I try to open it. I get an error that says C:\Documents and settings\user\mydownlaods\than the name of download, cannot be found.when I look in my download file, it shows the download as being deleted. Any ideas? FF
Welcome back, checks and please uncheck all responses as answered, this way among the other contributors will see the question and perhaps a few other ideas.
Thank you
EDIT:
other things that could cause this problem:
1.
IE open in "no Add-ons" mode To do than go to start > all programs > Accessories > system tools > "Internet Explorer (No Add-ons). If you can download the software now, it suggests then there's a bad addition affecting the browser.
2.
Sometimes the index.dat file may be damaged. In this case, you will need to delete the index.dat file and restart your computer. Then, you will be able to upload files properly again. Follow the steps below to delete this file.
(1) open Internet Explorer.
2) click on tools, click on Internet Options
(3) on the tab general, under temporary Internet files, click on delete files
4) click Ok when asked if you want to remove the files
(5) by the historical section under the general tab, click clear history, and then click Ok
(6) close Internet Explorer
(7) logout the current user and log on to another user as administrator account
(8) click on start, run
(9) type CMD and press ENTER to open a command prompt
(10) replace the directories in the Temporary Internet Files directory by typing the following command, substituting the word by the user username and the correct drive letter in Windows XP.
CD drive: \Documents and Settings\nom of utilisateur\Local Settings\Temporary Internet Files\Content.IE5
Example: cd c:\Documents and Settings\Mark\Local Settings\Temporary Internet Files\Content.IE5
(11) type del index.dat and press enter
(12) type Exit and press ENTER to close the command prompt
(13) restart your computer
Once the computer has been restarted, open a web page with a link to a download. Click on the link and try to download the file. It should work now.
Written by Mark Hasting
3. http://support.microsoft.com/kb/932823?ppud=4&wa=wsignin1.0
-
I need to change a file type of processing to doc, pdf, txt or html. the site that I am trying to download a file needs in one of these formats. THX
A complete answer would require that we know what "word processing" you use. However, one of the types of files that are acceptable as 'pdf', you can install 3rd party freeware "CutePDF Writer" on your computer:
CutePDF: <> http://www.cutepdf.com/products/cutepdf/writer.asp >
Note that you need to install CutePDF and Ghostscript (both on the site) on your machine. After you do, you will find that you have another printer on your computer named "CutePDF Writer". Print the file of word processing for this virtual printer. When you do so, it ask for a place to store your PDF file. Give it a name and location, and it will create a PDF file for you. Excellent Freeware (among my top 10) and works with any application you can print from. Especially good for saving recipes online so that you don't waste any ink/paper.
HTH,
JW -
When you download a file, I ask me where to save the file. He asked me just to save it or not. Then, after you save the file, I try to find the file, but it is not in the usual directories when I download files. I tried to download from CNET. This just started today. Don't remember any recent downloads either.
That's happened? It is not under My Documents to my profile or my Local Settings\Temp directory either. I did a search for the file name, even in hidden folders.
I am running Windows XP Home Edition. [By today standard T - Rex, but it's the only one I use for office work, no video editing work.]Hi WingersMedia,
- What web browser do you use to download the files?
- Are you having a similar problem with all files or any download specific file only?
- Are you able to download and save files from other sites?
I suggest that you try to download other files on the same site and check if it works.
I suggest you check that the recording location of the file when you are prompted to save the file and check later to this place.
Also check out the link below to put on with similar problem and check if it is useful if you are using Internet explorer as your web browser.
-
Original title: I need an another new Windows Update to activate my Windows Vista to access the downloadable recommended secure free program for downloading various files and any other information you want? Thank you! Randle
Please help if you have the time giving me the name of a free secure downloadable software that works for Windows Vista, when the word is not on my PC for
downloadind attached to power open, save, display, print and other means that this downloadable can help. I would be very grateful for your help! I works but not Word and PowerPoint if you have any suggestions that will be very solve my delimma of not be able to successfully download these things I just Gillies
Your expert advice, patience, attention to my request, time, are all valuable and appreciated! Thanks again and have a wonderful day! Randle
Hello Randle,
You can use your favorite search engine & download any third-party software that might be used to.
Note: this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there.Hope the helps of information.
Maybe you are looking for
-
Apple TV &; multiple language tracks
I have a video that has several tracks different languages (English, French, Japanese) in my iTunes library on my iMac. I watch this video via the home sharing on my Apple TV 4. When I watch the video in iTunes on my iMac, I can easily choose what la
-
The goal is to embed a link in a word which, when clicked, opens the bookmarks bar and adds some bookmarks in the document. Another option would be that the link create icons from desktop to Web sites. The main deal breaker is we do not want to chang
-
Slow down the Evo 850 Samsung SSD
Recently, I had a new SSD Samsung 850 EVO and installed on my macbook pro 2009. Using OSX El Capitan. But the reading and writing speeds I get are: Address: 209 MB/s Read: 264 MB/s and I should get about 450 MB for read and write at least. I went thr
-
why no 2-factor authentication?
I meet all the requirements of 2 factor authentication, but I have not received an invitation yet and do not see the option to activate my iPhone with 9.3 or on my Mac, Yosemite. I have stage 2 audit. That is what it is?
-
Need cable HDTV for Qosmio G20
Nobody thinks that this cable will work on my G20 to watch HDTV because it looks like he can... http://www.consolesandgadgets.co.UK/catalog/Nintendo-dterminal-cable-p-2401.html