Download BLOB to a file
Hello
I have a few spots more than 32000 bytes (that is 160458357 Bytes) and the videos.
Is there a way to download these BLOBs in files in a single string?
Please help me.
Regrads,
Siegwin
For example:
SQL >-check the size of blob
SQL > select length (awlob)
sys.aw $2 awcreate
3 where ps # = 1512
4 and gen # = 0;
LENGTH (AWLOB)
-------------
1603940
SQL >-blob of writing to a file
SQL > declare
targetfilehandle 2 utl_file.file_type;
3 v_blob blob.
number of v_amount 4;
number of 5 v_pos;
Number 6 v_len;
7 v_raw raw (32767).
Start 8
9 targetfilehandle: = utl_file.fopen('TEMP','awlob.blob','wb');
10. Select awlob
11 in v_blob
sys.aw $12 awcreate
where the 13 ch # = 1512
14 and gen # = 0;
15 v_amount: = 32767;
16 v_pos: = 1;
17 v_len: = length (v_blob);
18 if v_len > 0
19 then
loop 20
21 dbms_lob.read (v_blob, v_amount, v_pos, v_raw);
22 utl_file.put_raw (targetfilehandle, v_raw, true);
23 v_pos: = v_pos + v_amount;
24 exit when v_pos > = v_len;
25 end of loop;
26 elsif v_len = 0
27 then
28 utl_file.put_raw (targetfilehandle, null, true);
29 end if;
30 utl_file.fclose (targetfilehandle);
ends 31;
32.
PL/SQL procedure successfully completed.
SQL >-check the size of the file
SQL > exec dbms_output.put_line (dbms_lob.getlength (bfilename ('TEMP', 'awlob.blob')));
1603940
PL/SQL procedure successfully completed.
SQL >
SY.
Tags: Database
Similar Questions
-
I have an Apex 5 interactive report on a table with a blob column. I have the updated column to download BLOB and Inline content available. It works fine, but I would like that the file blob to open in a new browser window. I see no way to do it. Is there a way?
Thank you!
RoboMan says:
I have an Apex 5 interactive report on a table with a blob column. I have the updated column to download BLOB and Inline content available. It works fine, but I would like that the file blob to open in a new browser window. I see no way to do it. Is there a way?
1. in the definition of BLOB column, adds a static ID as the "blob-download" for use as a jQuery selector.
2. create a dynamic action after Refresh on the IR region, which inserts an attribute target on the download link:
Event: After refresh
Selection type: Region
Region:
Real Actions
Action: Run the JavaScript Code
Fire on Page load: Yes
Code
$('td[headers="blob-download"] a').attr('target', '_new')
-
Download BLOB via wpg_docload does not
Hello
I installed a new oracle database server and recently installed the 4.1 Apex then transferred my legacy data and applications from the old server.
My new configurations are
My oracle Enterprise Manager displaysOracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for 32-bit Windows: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production
Previously I had Apex 4.0.1 on Apex listener through the Glassfish server and all my applications worked perfectly. But on the new installation of the page that downloads report, via the rtf code generation and it downloaded from the BLOB does not work.Hosts 1 Application Servers 1 OC4J Instances 1 HTTP Server Instances 1
I searched and didn't find any help, but it seems that there is a problem of configuration of DAD. My DAD file looks likeDeclare l_mime varchar2 (255); l_length number; l_file_name varchar2 (2000); l_lob_loc blob; l_rtf clob; l_name varchar2(100); -- conversion variables l_src_offset number := 1; l_dest_offset number := 1; l_lang_ctx number := 0; l_warning varchar2(32767); begin -- get name select 'testrtf' into l_name from dual; -- generate document select :P16_RTF into l_rtf from dual; --:P16_RTF contains rtf code. -- convert to lob dbms_lob.createtemporary(l_lob_loc, false); dbms_lob.converttoblob(l_lob_loc, l_rtf, DBMS_LOB.GETLENGTH(l_rtf), l_dest_offset, l_src_offset, 0, l_lang_ctx, l_warning); l_length := dbms_lob.getlength(l_lob_loc); -- http header owa_util.mime_header('application/rtf', false); htp.p('Content-length: ' || l_length); htp.p('Content-Disposition: attachment; filename="'||l_name||'.rtf"'); owa_util.http_header_close; -- download blob wpg_docload.download_file (l_lob_loc); end;
and I could not find wwv_flow_file_objects$ either. All of the suggestions.<Location /pls/apex> Order deny,allow PlsqlDocumentPath docs AllowOverride None PlsqlDocumentProcedure wwv_flow_file_mgr.process_download PlsqlDatabaseConnectString db:1521:orcl ServiceNameFormat PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8 PlsqlAuthenticationMode Basic SetHandler pls_handler PlsqlDocumentTablename wwv_flow_file_objects$ PlsqlDatabaseUsername APEX_PUBLIC_USER PlsqlDefaultPage apex PlsqlDatabasePassword ****** PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize Allow from all </Location>
Concerning
Sabir
Published by: sabir786 on December 29, 2011 11:37Hi sabir786,
I had exactly the same problem. I went to my request of APEX 4.0 and Oracle 10 g to 4.1 APEX and Oracle 11 g, then all download functions via wpg_docload stopped calling the download dialog box.
Now, I tried some kind of workaround to find the feature.
Rather than use page-processes to call the download functions, I tried to use enforcement procedures (called on request) and it works fine.that is to say:
an application process named 'export' called at the requestStart
(#OWNER) # .f_export
v_EXPTYP =>: P10_EXPORT_TYPE,
v_ID =>: F_PROJEKT_ID
);
end;a button that calls a branch with the following query
APPLICATION_PROCESS = export
f_export is the function that generates the rtf file and in the end, it has the wpg_docload functions to download the file.
Hope it helps you as well.
Concerning -
Download of the current file will stop if I close the window of the Downloader?
Download of the current file will stop if I close the window of the Downloader in Firefox 4.0.1? This was not the case with the 3.x versions.
No, as long as you don't close Firefox then the download will continue.
You can set the browser.download.manager.quitBehavior pref to 2 on the topic: config page.
That will make Firefox asks for confirmation if you want to cancel the download if you close Firefox.See:
To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.
If you see a warning then you can confirm that you want to access this page. -
I'm having problems downloading, then read mpg files or CD/DVD to play on something other than VLC Player. My main PC and an old laptop is fine, but never had this problem. I get the error messages including could be a codec problem, but do not understand it and if it's what I do?
Hope you can help.Kind regards
SteveHello Steve
If you have this problem with Windows Media Player, you probably need to install the codec package.
I recommend to install K-lite codec package or even K-Lite mega codec package.It is simply to find. Use Google and you will find after a few clicks only.
-
Ability to download Word on Atrix files?
Is it possible to download Word (or RTF) files on my Atrix? I don't see anything in the manual to this topic...
Thanks in advance for your help.
I'm glad to hear it. Also, if you can give the problem solved, it can help others looking for an answer.
-
Following the instructions to download and install the file > HP-Inkjet-SW-OSX-Mavricks-V12.34.37.dmg
Tried to download this, but he says that's not available. How to do this?
Followed all the directions for ininstalling, reset system on Mac for Yosemite OXZ 10.10 5
Hello
Download the installation directly from the following link:
If you do not download the driver, try another browser like Chrome or Firefox.
Shlomi
-
How to download and save a file mp3 songs or movies
How to download and save a file mp3 songs or movies
Hello
a lot of songs and movies have taken your ability to simply download the site now. If you want to search for the download of instructions on individual Web sites. (Amazon.com example) However, the best way to download is the right click on a pic/song/video/file and select Save.
calculation of the happy,
B Eddie
-
why I can't download and save the files to my laptop... it disappears in the air... I have windows vista and ie8... Please help I'm going crazy... this laptop is my work tool... Thank you.
Hello locness2411,
Have you checked your download folder? Also you can put where you want to save a file to the desktop as, for example. Take a look at these links: http://www.tweaklibrary.com/Software_Applications/Internet-Explorer/27/Set-default-download-path-of-Internet-Explorer/10153/ or http://www.windowsreference.com/internet-explorer/how-to-change-the-default-download-directory-for-internet-explorer/ that can help you in what you want to change. Hope this helps you. Let us know anyway. Make it a great day!
"And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)
-
Trying to download music or copy files to a cd, I get the message "the file name is invalid or too long.
Hello
1 when you download the files?
If the files are located in deep in the files to copy or cut the file on the desktop or on the desktop and then check please.
You can check the blog next deal with a similar problem.
Team Build and 260 + character paths
http://blogs.msdn.com/b/aaronhallberg/archive/2007/06/20/team-build-and-260-character-paths.aspxI hope this helps.
Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
Zip file: when I go to download my portable zip file opens the file instead of save it?
When I go to download my portable zip file opens the file instead of save it. I know I can right click and go to save as and save the file. Can someone tell me how to charge my laptop where I save the file when I click it?
Read the following article and see if it helps: http://www.winhelponline.com/blog/reset-the-always-ask-before-opening-this-type-of-file-setting/.
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.
-
How to download and store the file in the device
I need to download and save a file to the server. Can any one go code me for this example.
Example of solution download a file via the URL: http://supportforums.blackberry.com/t5/Cascades-Development/How-to-download-zip-file-And-also-open-e...
It stores the file in your sandbox app directory. After that you can move anywhere. -
original title: Disk Image file
While there, I downloaded a disk Image file, and now when I want to delete it, it says that the action cannot be completed because the file is opened in the system. Pls help me remove :)
I discovered what the problem was... :)
-
So I tried to get this to work at least for a day now, but whenever I try to launch my new game I'm away I kept getting this error: "your DirectX Runtime is up-to-date. Download and install this file from Microsoft. ' When I was re-directed I downloaded, it opens and clicks on agreed and all this things, but after 10 seconds initialization, it gave me this error: "Setup could not download the file. Please try again later or check the connection to the network. " I checked all that nothing seemed to be wrong, I did it again and again and again. So I just went to a solution or any news for DirectX. So far, no luck.
I am running on DirectX 11 right now, is if there is a new DirectX or am I a jerk, and that is a different problem? I can't understand it.
Thank you
Hello
Try this link... it's a complete Installer for DirectX Runtime June 2010... This is an optional package that use a lot of games...
http://www.Microsoft.com/en-us/download/confirmation.aspx?ID=8109
The file is self-extracting, so take note where extract you it to.
Open the folder, and then double-click DXSETUP...
-
How to install a program downloaded in a zip file?
Original title: zip programs
How to install a program downloaded in a zip file, it is extracted in his how can file, I install it?
How to install a program downloaded in a zip file, it is extracted in his how can file, I install it?
If you have already extracted the files in the Zip folder there should be an installation file in the new folder to install it on your PC
Maybe you are looking for
-
Hi, do you know the lead time of the pre-release version and firefox real?
I'm looking for answers to the following questions: 1. is there a pre-release for firefox tester program? 2. How do you get notifications of the pre-release for firefox program? 3 and what is the time between the release of the pre-release program an
-
Can I get the MAC address for my lost iPad?
I think I left my iPad Pro in the street today while loading and led away. When I realized it, I rolled back, but he had disappeared. It's a Wifi model only, so find my iPhone will not be much help. However, my local ISP is a service where you can
-
I'm trying to do a clean install of windows 7 Professional (32-bit) on my laptop ASUS X61SL. Initially there was Vista Home Premium (32-bit) running on this laptop. After the start of the boot and windows 7 by loading files and starting windows comes
-
What is going on? All 30-minute class hours, the windows command shell opens. The title bar displays "Administrator: vlp.bat. The cursor blinks just so nothing happens, but I'm not a computer expert. The vlp.bat file found in Windows/Basic 5 other ba
-
Hey all,.I'm buying a new PC for the company that I work. We use CS6 which is installed on a macbook pro, but you want to transfer it to the new PC when it arrives.I read a similar thread where the original poster has been advised that the only optio