Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: BLOB's in Web page
Read the mod_plsql docs on File Upload/Download. You can access the docs
from the Administrative Gateway (click on the Help link in the upper-right
corner of the screen - this will bring up the manual). In a few words:
Read the documentation for more details on these things. And install the latest patch for mod_plsql and OWA toolkit to get rid of the many bugs (including security holes) in both.
hth.
-- Vladimir Zakharychev (bob@dpsp-yes.com) http://www.dpsp-yes.com Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications. All opinions are mine and do not necessarily go in line with those of my employer. "Jason Craig" <jascraig_at_hotmail.com> wrote in message news:f310a7ab.0203112347.7f6b3932_at_posting.google.com...Received on Tue Mar 12 2002 - 03:50:03 CST
> We're working to get a BLOB from our db into a web page via a stored
> pl/sql procedure. How do we accomplish this? Right now we're
> considering using a varchar2 as a pointer to the file. Here's a look
> at our code using a file only (not using the DB):
> procedure HOME
> is
> begin
> htp.htmlopen;
> htp.headopen;
> htp.title('wise home page');
>
> htp.p('<META HRRP-EQUIV="Expires" CONTENT="Mon, 12 Mar
> 2002 17:45:00 GMT">');
> htp.p('</META>');
> htp.headclose;
> htp.bodyopen;
> htp.header(1, 'EKBD');
> htp.header(1, 'Welcome to WISE. Where you will Screech
> if you do not get
> Hooters!');
> htp.tableOpen(cattributes => 'ALIGN ="center"');
> htp.tableRowOpen;
> htp.tableData(htf.img2('owl.jpg', cattributes =>
> 'height="259" width="259"'));
> /*'/u01/app/oracle/product/9.0.1/Apache/Apache/htdocs/owl.jpg'
> */
> htp.tableRowClose;
> htp.tableClose;
> htp.bodyclose;
> htp.htmlclose;
> end;
>
> We want to put the owl.jpg into the DB in a BLOB column, but how do we
> extract it? We're using 9i with all the develop software.
>
> Any help would be appreciated. Please e-mail me:
> jascraig_at_hotmail.com.
>
> Thanks,
> Jason