Home > Back-end >  After I use Delphi to images saved to the database, I want to come with ASP do not know is not
After I use Delphi to images saved to the database, I want to come with ASP do not know is not

Time:10-24

Thank you very much ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

CodePudding user response:

Method is the same,
A blob field

CodePudding user response:

Of course, the database has nothing to do with the interface

CodePudding user response:

Of course, to give you an example:

Showpic. Asp
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
<% % @ LANGUAGE="VBSCRIPT" & gt;
<%
The Response. The Expires=0
The Response. The Buffer=TRUE
The Response. The Clear
The Response. The ContentType="image/GIF"
Set the conn=server. CreateObject (" ADODB. Connection ")
Conn. Open "DSN=myDSN; UID=sa; The PWD=; The DATABASE=pubs "
Set the RS=conn. Execute (" select photo from people where id='3201' ")
The response. BinaryWrite rs (" photo ")
The response. The END
%>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Then the above code can be directly inserted into the IMAGE tag, you can extract data from the database to HTML or ASP page display function:

Showpic. HTML
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


Display images in the database & lt;/TITLE> <br/></head> <br/><body> <br/><IMG SRC="https://bbs.csdn.net/topics/showpic.asp" & gt; <br/></body> <br/></HTML> </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/Backend/71379.html" target="_blank" style="color:#999">https//www.codepudding.com/Backend/71379.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/Backend/71378.html'>The property dropdown can header does not exist '</a></div> <div class="detail-arr-right">Next:<a href='/Backend/71380.html'>There are familiar with Delphi MYSQL operation?</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=GAME' target='_blank'>GAME</a> <a href='/e/tags/?tagname=+graphics%2Fmultimedia' target='_blank'> graphics/multimedia</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>