Download the content of the BLOB from a custom table
In our application hosted the apex, the following code from the Express on the Application Developer's Guide works great to allow a user to download the contents of the blob of one of our paintings customized via a download button. However, the code does not work on the Cloud Oracle because the 'owa_util' package is no longer available. The code is as follows:CREATE OR REPLACE PROCEDURE download_my_file (p_file in number) AS
v_mime VARCHAR2 (48);
V_LENGTH NUMBER;
v_file_name VARCHAR2 (2000);
Lob_loc BLOB;
BEGIN
Name of SELECT MIME_TYPE, BLOB_CONTENT, DBMS_LOB. GETLENGTH (blob_content)
IN lob_loc, v_file_name, v_mime, v_length
OF file_subjects
WHERE 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 download_my_file;
/
In addition to the use of web services, does anyone know how to do this? Is it possible to add access to the package 'owa_util' in the cloud? I also tried apex_util.get_blob_file_src but that is also not available in the Oracle cloud.
Thank you
Steve
Hi Steve,.
(1) sys.owa_util is certainly available. You should be able to issue this block very well SQL commands:
Start
owa_util.print_cgi_env;
end;
((2) I think the problem is that you have created a procedure that a) cannot not be granted run to the PUBLIC and b) cannot be called directly from the URL (because of a properly locked APEX listener which restricts entry points, i.e..) What procedures can be called directly from the URL).
Even if there was no prohibition of granting something to the PUBLIC, you would never get by the restriction on the call of your own point of entry of the URL. Also in a facility non - Cloud APEX (and even when you're using mod_plsql), the list of entry points is applied through the PlsqlRequestValidationFunction (http://docs.oracle.com/cd/E23943_01/web.1111/e10144/under_mods.htm#HSADM698).
Two ways around this:
(1) you can define a request of the process which, when called, downloads the requested file
or
(2) you may want to expose this functionality via a RESTful Service of media resources, even though right now, I'm not necessarily details how you would ensure access to it.
I hope this helps.
Joel
Tags: Database
Similar Questions
-
I use ADF BC, Jdeveloper11g 1.1.1.4
in my application, I need the list down all the files stored in the Blob from a database table field in the af: table, if the user clicks on the name of the file that is linked to af:link, then the file will be opened to show the user the contents of the file.
There is a sample built in 10g of http://technology.amis.nl/blog/category/oracle/adf-jheadstart, but only limited to types of files as 'doc', 'pdf', 'excel '.
I think there is a solution put forward 11 g and also not be limited only these three types of file upload & dwonload to & database right of files?
Could you expert give me only a sample built in 11g to let me study, thank you very much!http://KR.forums.Oracle.com/forums/thread.jspa?threadID=1982213 - looks like, you may need to change the contentType depending on the use case
-
How to download the driver from mobile Galaxy Nexus for my laptop Samsung RC512?
Have a message 'the pilot' not found when tried to transfer photos from my phone Galaxy Nexus to my laptop Samsung RC512
Hello
You can try to download the drivers from the link provided and then try to transfer the photos and check.
http://www.Samsung.com/us/support/owners/product/Sch-I515MSAVZW -
How can I download the drivers from Manufacter ' ' s Website if I have no internet.»
original title: How can I download the drivers from Manufacter ' ' s Website so I havew no internet. ". Computer a wipe trying to download Microsoft XP! Now I can't access the internet.
How can I download driver manufactuer website if I have no internet service? Computer was wiped out trying to download Miccrosoft XP. Now I can't access the internet.
Hello
In the case of no internet access, I suggest to download the driver on another computer that has internet access and save it. Later, you can use any flash drive or you can also burn it to a CD for transfer files downloaded to your computer and install the driver file.
In order to bypass without network problem, follow the link below and check if this can help:
-
Loading/downloading the images from the camera
I downloaded the images from the camera to the computer, then accidentally deleted from the memory card. Move them back to the memory card?
I downloaded the images from the camera to the computer, then accidentally deleted from the memory card. Move them back to the memory card?
=====================================================
FWIW... this task is easier to do than to explain.(1) connect the camera via a USB cable and turn it on... or insert the memory card in
your Media Player.(2) go to... Start / my computer... your camera should be attached to a drive letter.
The reader should be recognized as one or several removable disks... it can
have several drive letters.Removable disk (e :))
Removable drive (g)
Removable disk (h :))Left 3) click on drive letters... When you identify the drive letter for the camera or
Media Player... (it will be one that does not launch a dialog box indicating:)
Please insert a disc in the drive?) ...Follow these steps...
4) navigate to the folder in which the photos are... Open it and go... Edition/select all... good
Click the group selected (highlighted), then from the menu choose... Send to /.
Removable disk?Only a limited number of files can be copied to the root directory of the card... if you
Transfer lots of pictures... they must be in one or more folders.If these files have been changed in any way, rename, rotate, changing the brightness...
No matter what... the camera will recognize them is no longer, but they will always be on the map
If you want to use as a backup. You can click on the left to see what is on the drive letter
the map.Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
-
I have a samsung laptop with windows vista. and IE 9. I downloaded the software from amazon, but when I stopped and try to connect then I find that my laptop will not start. so I try to get back to samsung and they fix it so that I can connect, but then I find that the software has been deleted and I don't know why. can anyone help
Hi elsie,
As you mentioned you did a factory restore using the Samsung recovery disk, it restored the computer to factory settings & finally deleted the application from your computer.
You can redownload the application & install it.
Reference: Install a program
Hope the helps of information.
-
Remember - this is a public forum so never post the private information such as email or phI cannot get the Microsoft wired keyboard 500 to work on my laptop. I bought a PS2 Connector USB to actually connect to laptop. I also downloaded the software from Microsoft, but still nothing. Do not work.one numbers!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
Hi Louise South,.
Follow the instructions below that may help you resolve the issue.
Method 1:
I suggest you to uninstall the software and reinstall it from the link below.
http://www.Microsoft.com/hardware/download/download.aspx?category=MKCheck whether the problem is resolved.
Method 2:
Follow the instructions in the link below and check if the problem is resolved.
Troubleshoot wired keyboards that do not or only the erroneous characters category
http://support.Microsoft.com/kb/258826Please post back and let us know if it helped to solve your problem.
Kind regards
KarthiK TP -
Original title: error Windows 7 installation files
I bought a copy of Windows 7 at Tiger Direct on 22/05/2014. I lost my copy and I tried to download the iso from the Microsoft web site, but my product key is not valid. I get this error message
We had a problem with the request for approval.
See for other directions:
http://answers.Microsoft.com/en-us/Windows/wiki/Windows_7-update/how-to-what-are-my-options-for-obtaining-Windows-7/528163c1-0b2e-4AD2-a26d-7112851d1dc2
-
Need help to download the attachment from mail Client
Hello
I am trying to download the attachment from the mail using AttachmentDownloadManager API. For that I am currently using the code below:
public class MailMinder extends UiApplication { public static void main(String args[]) { MailMinder theApp = null; try { theApp = new MailMinder(); } catch (Exception e) { Dialog.alert("Exception e = " + e.toString()); } finally { theApp.enterEventDispatcher(); } } private MailMinder() { AttachmentDownloadManager adm = new AttachmentDownloadManager(); adm.download(bodypart, null, new DownloadProgressListener() { // Not able to get the Bodypart object here public void downloadCancelled(Object element) { } public void downloadCompleted(Object element) { //Here i am doing the parsing of the attachment } public void updateProgress(Object element, int current, int total) { } } }
As you can see, this API download() method is required the Bodypart object I get using the subject line of the Mail or of the Open Message.
But I'm not able to get the object of the open message I tried using MessageListener and FolderListener API. And when I open a Message in the Messages Application, I must add a Menuitem.Can someone help me to get the Open Message of the Message object and add the Menuitem?
Note: I don't want to use the Attachment Manager API as it's require the xirimdevice prefix in the name of the attachment.
Hi Mark. I am able to fix this with a different approach. Please check in my blog: BlogforMobile
Thanks a lot again for your support.
-
I downloaded the drivers from driverfinder
I downloaded the drivers from driverfinder, and now I get a message that says star force protection driver is not compatible with this version of windows and will be disabled. Applications that require this driver will not work correctly if a fix. I know that I can restore the driver in Device Manager, but which driver I need to restore. I can't find the driver of starforce.
This type of "all in one" software locator pilot are to be avoided at all costs. They tend to cause problems that may require you to reinstall your Windows completely.
Drivers do not need to be updated on a "scheduled" interval You should only update drivers when you have a problem with the corresponding device. You get directly suitable for free from the manufacturer of the device driver.
-
bought the plan of photography and to download the app from cc but still not able to install complete programs, continues to remain without subscription
Sign once Adobe Creative Cloud App and sign in again and check:
Connect and disconnect activate Cloud Creative applications
Always the same?
1) go to C:\Windows\System32\drivers\etc and locate the file named hosts inside etc folder.
Copy 2) guests of the file to the desktop and open the same thing with Notepad.
Check if you can see all Adobe related as entries in the Hosts file 127.0.0.1 activate.adobe.com... etc?
-
you want to ask if where can I find or download the exe from the downloaded adobe photoshop and flash professional after downloading using adobe cc. I just want to have a copy for offline installation.
Hello
This link may help Adobe CC 2015 Direct Download Links: Creative Cloud 2015 Release | ProDesignTools
Please do not forget to follow the "important Instructions" on the page (required by Adobe) for direct links work.
It could be useful!
Rayyan
-
Hi, I, m need Adobe Photoshop CC 2015 offline trial version Installer. Please help me. How to download the version from the adobe web site offline?
First read the important instructions on this page.
-
I bought Adobe Master collection CS6 and accidentally damaged installation disc, but I have the serial number and need a software to download to install on my computer please help me where to download the software from?
Available downloadable Setup files:
- Suites and programs: CC 2015 | CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
- Acrobat: DC, XI, X | 9,8 | 9 standard | 8 standard
- Captivate: 8 | 7 | 6 | 5.5, 5 | 1
- Cold Fusion: 11: 10 | 9.0.2 version 9.0.0, 9.0.1, 8.0.1, 8.0.0, 7.0, 6.1, 6.0, 5.0, 4.0
- Contribute: CS5 | CS4, CS3 | 3,2
- FrameMaker: 12, 11, 10, 9, 8, 7.2
- Lightroom: 6| 5.7.1| 5 | 4 | 3
- Photoshop Elements: 14 | 13 | 12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
- Premiere Elements: 14 | 13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
Download and installation help links Adobe
Help download and installation to Prodesigntools links can be found on the most linked pages. They are essential; especially steps 1, 2 and 3. If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".
-
I have a Mac Book Pro, which does not include a CD slot and I bought the Suite Adobe 6 CD. Download the program from the Web site using my serial number?
Hi Haley,
Please download Creative Suite 6 applications
Kind regards
Sheena
Maybe you are looking for
-
How to start a new movement in a room of several movement
I want to bring a piece of several movement in Logic Pro X. When I finished the first movement (which worked just fine and dandy) I wonder now, how can I say logic I want to start a new movement. I created a new area for each track and want to start
-
Problem with fan for laptop!
Hello, I bought a HP 2000-2b43dxbefore 15 days and I am sneaking suspicion there is problem wih fan / air on my laptop. When I turned my laptop first and next 2-3 days, my fan was silent until I couldn't hear his work so its normal because when I tur
-
ohjauspaneeli suomen kieliseksi
KAANTAA OJAUSPANEELI SUOMEN KILISEKSI PITAS.
-
Games - Modern warfare 3 will not load on xp
Modern warfare 3 will not load on xp
-
using Explorer to find the .dll
I'm trying to find a specific. DLL file in one of my programs that I installed on my vista machine. How to use the Explorer to find this file? I tried a lot of things but can not find. can someone help me please?