We want display image by using plsql but image is not display properly
DECLARE
p_dir varchar2(100):='/prd/rcms/test/bala_test/';
p_file varchar2(100):= 'sam.png';
dest_dir varchar2(100):='/prd/rcms/test/bala_test/';
dest_file varchar2(100):='test_image.html';
dest_handle UTL_FILE.file_type;
p_clob CLOB;
l_bfile BFILE;
l_step PLS_INTEGER := 2074;
v_string varchar2(4000):='';
BEGIN
dbms_output.put_line('Encoding starts');
l_bfile := BFILENAME('BFILE_DIR', p_file);
dbms_output.put_line('File is going to open');
DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
FOR i IN 0 .. TRUNC((DBMS_LOB.getlength(l_bfile) - 1 )/l_step) LOOP
dbms_output.put_line('Inside encodeing');
p_clob := UTL_RAW.cast_to_varchar2(UTL_ENCODE.base64_encode(DBMS_LOB.substr(l_bfile, l_step, i * l_step + 1)));
p_clob := p_clob||v_string;
dbms_output.put_line(p_clob||'<------------- '||i);
END LOOP;
dbms_output.put_line('Base64 encoded');
p_clob:= '<img src="data:image.png;base64,'||p_clob||'" width="32" height="32">;
dest_handle := UTL_FILE.fopen(p_dir, dest_file, 'w', 32767);
UTL_FILE.put(dest_handle, p_clob);
dbms_output.put_line(p_clob);
DBMS_LOB.fileclose(l_bfile);
dbms_output.put_line('Encoding ends successfully');
exception
when others then
dbms_output.put_line('Error : '||SQLERRM);
end;
/
972021 wrote:
DECLARE
p_dir varchar2(100):='/prd/rcms/test/bala_test/';
p_file varchar2(100):= 'sam.png';
dest_dir varchar2(100):='/prd/rcms/test/bala_test/';
dest_file varchar2(100):='test_image.html';
dest_handle UTL_FILE.file_type;
p_clob CLOB;
l_bfile BFILE;
l_step PLS_INTEGER := 2074;
v_string varchar2(4000):='';
BEGIN
dbms_output.put_line('Encoding starts');
l_bfile := BFILENAME('BFILE_DIR', p_file);
dbms_output.put_line('File is going to open');
DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
FOR i IN 0 .. TRUNC((DBMS_LOB.getlength(l_bfile) - 1 )/l_step) LOOP
dbms_output.put_line('Inside encodeing');
p_clob := UTL_RAW.cast_to_varchar2(UTL_ENCODE.base64_encode(DBMS_LOB.substr(l_bfile, l_step, i * l_step + 1)));
p_clob := p_clob||v_string;
dbms_output.put_line(p_clob||'<------------- '||i);
END LOOP;
dbms_output.put_line('Base64 encoded');
p_clob:= '<img src="data:image.png;base64,'||p_clob||'" width="32" height="32">;
dest_handle := UTL_FILE.fopen(p_dir, dest_file, 'w', 32767);
UTL_FILE.put(dest_handle, p_clob);
dbms_output.put_line(p_clob);
DBMS_LOB.fileclose(l_bfile);
dbms_output.put_line('Encoding ends successfully');
exception
when others then
dbms_output.put_line('Error : '||SQLERRM);
end;
/You are trying to output a clob using UTL_FILE.PUT which takes a varchar2 parameter, and thus has a limit of 32767 bytes. That could be problematic unless you know you are outputting less than 32K, in which case you should just store your data in a varchar2 in the first place.
You could use multiple UTL_FILE.PUT statements in a loop outputting up to 32767 bytes at a time, though you have to flush the UTL_FILE buffer to ensure you don't exceed 32K before flushing.
Alternatively, you can output CLOB data using some other techniques such as...
DBMS_XSLPROCESSOR.clob2file(
cl => p_clob
, flocation => p_dir
, fname => dest_file
);However, it's not even clear if that is causing you a problem, as we don't have your data
And for gawds sake, get rid of the stupid exception handler:
exception
when others then
dbms_output.put_line('Error : '||SQLERRM);
Similar Messages
-
I've just bought a Macbook Pro 15" and I'm trying to use Photoshop, but the resolution its displaying the images at for 100% are too small. I have to design for the web, so need to be intricate with detail, but I'm finding it adjusts the resolution of the image right down. (I mean you can see the image clearly, but it's too small to edit). When I look at Safari and see a web page at 100% it's clear, but the same page displayed in Photoshop CC appears 50% of the size (even though it says it's 100%) If I move the application window to another screen it adjusts it correctly – leaving all the pallettes, menus and tools correctly sized as they are on the retina display Is there some way to adjust the way Photoshop CC displays images so it is more consistent with what you actually see? There doesn't seem to be any answer on the Adobe forum, so hopefully someone here can shed some light. MacBook Pro with Retina display, 15", OS X Yosemite (10.10.2), Photoshop CC 2014
I tested both ways. With "open in low resolution" ckecked the size of the images is cool, but it is low-resolution including Photoshop appearance.
If "open in low resolution" is unckecked the appearance is good but the very small size.
See the image below. It has 650 x 732 px, 72 dpi. The font of the text "Neste aniversário ..." is with 18pt. -
I have a Macbook, 13" screen, purchased in 2007. I want to hook it up to my HDTV; I purchased a mini display port to hdmi adapter but it does not fit. Any suggestions?
If you connect yourMacBook using a MiniDVI/HDMI adapter you will need to use external speakers for audio since the pre-2010 MacBooks will only send video through the MiniDVI or MiniDisplay Port . The MiniDVI/HDMI doesn't carry audio and there's no audio plugs on the TV to work with HDMI since it's expecting audio with the HDMI.
If your TV has a DVI input plug you can use a MiniDisplayPort/DVI adapter. Then a DVI cable to the DVI input plug on the TV. The TV will have RCA audio plugs for use with the DVI. Plus DVI gives a sharper image than HDMI. -
3TB Timecapsule version 7.6.4 is CONSTANTLY losing WAN connection. Comcast is our carrier, and I've ruled out the modem as it downloads at 30mbs consistently.
Want to try and update firmware of Timecapsule, but it will not display an "Update" icon.
Grrrrr.....makes me miss my stupid PC set up as I could force it to do what I want!
Intermittent connection screws up Netflix, VOIP phone, Amazon, Streaming music via Spotify/Pandora, general internet access.....whole family is ****** off.
Any tips/tricks/ideas???
daveDowngrade firmware to 7.6.1 .. as the latest is just lousy.
It is easy to downgrade.. hold down the option key whilst you click the version number. in Macs.. lots of stuff is hidden behind an option key.
I also strongly recommend a factory reset and use all SMB names.. not apple type names..
ie TC name.. TCgen4
Wireless name TCwifi (or give names to both bands.. TC24ghz and TC5ghz).
That helps all the non-apple part of the world.. connect.
Also Mavericks has now changed over to SMB as well. So even Mac is now windows networking.
Generally these two things. .7.6.1 firmware and SMB names will fix it.. if not post again as is another step that is possible.. controlling the WAN speed of the TC. -
I have produced a number of DVD on my iMac. They are stored in a folder called Burn Folder. I want to get them into iTunes so I can play them on Apple TV. I have tried to convert them to MP4s using Handbrake but Handbrake does not recognize these files. I am stumped.
If you have the original movie files, you'd be much better converting those, otherwise try MPEGstreamclip.
-
I wanted to know if others were having difficulties getting All Day Events appear in the Notification Center in iOS 7.
Currently my Calendar in the notification center will show events that are at certain times, but they will not display All Day Events.Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
-
Can I back out 3.6.1 and install 3.6 instead? I want to use Azigo but it is not compatible with 3.6.1.
Install Firefox Portable 3.6.22 to your hard drive for that website. <br />
http://portableapps.com/apps/internet/firefox_portable/localization#legacy36 -
i was using my bros account for icloud, he changed & forgot the pass now i want to sign out & put mine but i'm not able to do that and he couldnt recover bcz he did it long time ago and apple support are not sending a recovery email to his email... what shall i do now to sign out?
Tell him to contact the Apple account security team for his country and ask for assistance changing the password: http://support.apple.com/kb/HT5699. If his country isn't listed, he can try contacting iTunes store support by filling out this form: https://www.apple.com/emea/support/itunes/contact.html.
-
trying to make an ibook and have 800 photos, want format of 8 photos/page, but default is not that- "create" the initial book from iphoto "album" it loads less than 800 pics and then when i change layout i have blanks.
if i clear the book so that it is all blanks and then try to load in the pictures i have it loses the chronology of the pictures that i had established in the album.
is there a way to import photos into an ibook template and keep the original order of the photos without having to do them one at a time?
also, is there a way to insert a photo rather than just dragging it? i have tried the cut and paste funciton but it doesn't seem to work, the target site doesn't seem to register with iphoto.
many thanks for your help.Photos are added to book in chronological order. So if you want to add them to a book in the order you have placed them manually in an album do the following:
1 - select all the photos in the album.
2 - use the Photos ➙ Batch Change ➙ Date menu option as shown here. Select any date and add 1 minute between photos.
3 - select just one photo from the album and create a book from it.
4 - in the book click on the Options button ➙ Book Settings button and make sure the checkbox for Auto-layout pages is unchecked.
5 - drag the album with your book photos onto the book icon and they will be imported into the Photos tray of the book in your pre-determined order but not into the pages themselves.
OT -
HT5312 I want to change my security question but i can not remember answers
I want to change my security questions but i can not remember answers so i want you to help me reset them.
ThanksThe page that you posted from tells you how to reset them i.e. if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 half-way down that page should let you reset them.
If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use -
I installed adobe reader but it will not display any pdf
I installed adobe reader but it will not display any pdf
What version of Reader in what OS? Does the program open? What happens when you use File->Open to open a pdf file on your computer? Any error messages?
-
XML has data but PDF is not displaying data
Hi Gurus,
I have one report with excel and pdf out put .
excel is working fine but pdf is not displaying data showing blank page . both out puts are using same XML.
Intresting thing is if I open RTF from bi publisher desktop and load XML data then i can see all the records.
but The same RTF is not showing data from Report.
I don't know what is the wrong with RTF.
I am attaching RTF and XML. could you please go through it and help me ?
Thanks for your help.Hi Bogdan,
i have 2 outputs for this report excel and PDF.
after scheduling report excel is working fine but PDF out put is failure. i am getting following message.
Job Name : Payment Request
Job Executed Date : March 19, 2015 9:15:11 AM CDT
Status : Job was failed.
View History :
Detail Message:
::RIPPLE_OUTPUT_FAILED::[INSTANCE_ID=vausobias201.austin.ppdi.com.1394740179760] [OUTPUT_ID=1006] ::DOCUMENT_GENERATION_FAILED::[INSTANCE_ID=vausobias201.austin.ppdi.com.1394740179760] [OUTPUT_ID=1006][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:447)
at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
at oracle.xdo.enterpriseScheduler.u -
Help! Menu 1 : No Background Image defined, use default blank image!
I've compressed my video and then imported the assets into dvd sp When I click on inspector I can see it in the Browse clip window etc. BUT when I burn I get the following and nothing on my disc. What am I missing? [email protected]
Starting DVD Build UNTITLED_DISC...
Compiler Initializing...
Precompiling Project UNTITLED_DISC
Compiling VMG Information...
Created 7 PGCs in VTSM1
Created 8 PGCs in VMG.
1 Menu(s) will be created...
Compiling Menu PGCs...
Compiling Menu#1 (Menu 1)...
Menu 1 : No Background Image defined, use default blank image!
Menu 1 : No Buttons defined!
Writing VIDEO_TS.VOB
1 VTSs and 1 Titles will be created...
Compiling VTS#1 (Track 1)...
Muxing VTS011.VOB
Done.
Linking VMG...
Linking VTS#1...
Writing VTS#1...
Writing VMG...
Writing Layout Info...
Compile Completed Successfully
Warning: The file ‘UNTITLED_DISC.layout’ found in the VIDEO_TS or HVDVD_TS folder will not be included in the final disc.
Warning: The file ‘VOB_DATA.LAY’ found in the VIDEO_TS or HVDVD_TS folder will not be included in the final disc.
Mac OS X (10.3.9)Hey Kellbone
this just means that you left your menu in your project, but you didnt delete it.
seems that you just made yoru first play the movie.
if you delete your menu, then you will not get that error.
all this error means is that you did not define either buttons or a sub-picture!
i get this error all the time with my static FBI warnings that i put in menu space, not on a VTS.
this is NOT a fatal error, so dont worry about it. it's more like a "HEY silly, you forgot to make buttons or put a sub-picture here!".
Mikey m. -
I hav tried your way of editing the account information, but my billing is not editing , I want to change my card no. but I am not able to do that,would you please assist me,I hav tried the above described methods
To Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I
I bought a sim free phone from phones 4u and had a virgin SIM card put it in to phone now it's locked to Virgin. I want to cancel and change networks but they
will not give me an unlock code can you help, as Virgin will not help meYou did not buy an unlocked iPhone. Only Apple themselves sell unlocked iPhones in most countries. Your iPhone locked to the first carrier used. Only Virgin could authorize unlocking of your iPhone, and if they will not, there's nothing you can do. Sell the iPhone to someone who can use it with Virgin and buy a truly unlocked iPhone from Apple.
Regards.
Maybe you are looking for
-
Require following field from one function module
Hi, This is a issue which I am working on.Can u help me in this issue The issue is as below. It ia a Abaper related issue .They want the clarification from Functional side We require your help in below mentioned Open order extractions. Basically we w
-
Unable to create the Invoice list
Hi We are recently went to go live. We have an issue related to the Invoice list. The issue is like this.......... 1. User wasnot maintained the information in Payer master data(Invoice list date & invoice dates). 2. He created the sales order, deli
-
Button "Customize Text Mappings" not visible in portal
Hi Experts, I am on EP7.0 SP11 and trying to configure As JAVA for text mapping. i did the configuration but i was unable to find the button "Customize Text Mappings" in portal (content administration>web dynpro>). is it portal server error and is th
-
By mistake a sd card was pushed into cd drive now can't pull this out
-
Only a very small amount of my music library will upload to itunes match
Only a very small amount of my music library will upload to itunes match