Re: Image datablade to Web?
Posted in 1997
<HTML><BODY> Markus Grønneberg Wold wrote: <BLOCKQUOTE TYPE=CITE>Has anyone managed to make pictures stored as "image" accessible on <BR>the web? I want to use the functions available in the Image Datablade <BR>on the images, so using LargeObjects doesn't do the trick. <BR> <BR>We use Illustra Release 3.2.1 on Windows NT 3.51, Web datablade release <BR>2.1 and Image release 1.3. <BR> <BR>Markus Grønneberg Wold <BR>-- <BR>We'll make | Mail: markus@hiof.no <BR>great pets | Web: <<A HREF="http://www.hiof.no/~markusg/">http://www.hiof.no/~markusg/</A>> </BLOCKQUOTE> Hello Markus, <BR> <BR>1) I assume that you manage to store the image using FileToLO through a normal sql statement or upload from a web page. <BR> <BR>2) Assume that you have a table name "t_Image" with a shema like this: <BR> <BR> create table t_Image ( <BR> imgName text not null unique, <BR> imgFile large_object not null, <BR> primary key(imgName) <BR> ); <BR> <BR>3) Now.. insert an image file (btnok.gif) from a dir /www/tmp as: <BR> <BR> insert into t_Image values ('img_btn_OK',FileToLO('/www/tmp/btnok.gif')); <BR> <BR>4) well, this is the MI tag that you need to add into your page: <BR> <BR><?MISQL SQL="select imgFile from t_Image where imgName = 'img_btn_OK';"> <BR> <img src="$WEB_HOME?LO=$1&type=image/gif" height="50" width=450" alt="image: button OK"> <BR><?/MISQL> <BR> <BR>syay syay@spyder.net.my <BR>SpyderNet Sdn Bhd <BR><A HREF="http://www.spyder.net.my">http://www.spyder.net.my</A> </BODY> </HTML>