用ASP顯示ACCESS數(shù)據(jù)庫(kù)的GIF圖象建站知識(shí)
導(dǎo)讀:1建站知識(shí)寫入: 1:把gif圖像文件讀入內(nèi)存(一個(gè)變量strTemp)。 2:寫入數(shù)據(jù)庫(kù)。 以下為引用的內(nèi)容: Dim binTmp() As Byte Dim con個(gè)業(yè)網(wǎng)站建設(shè)公司網(wǎng)站推廣優(yōu)化seo。
寫入:
1:把gif圖像文件讀入內(nèi)存(一個(gè)變量strTemp)。
2:寫入數(shù)據(jù)庫(kù)。
以下為引用的內(nèi)容:
Dim binTmp() As Byte
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strSql As String
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.Open "db"
strSql = "select * from tbImage"
rs.Open strSql, conn, 1, 3
OpenFile ("bayshore.jpg")
'請(qǐng)自己實(shí)現(xiàn)OpenFile函數(shù)
rs.AddNew
rs.Fields("image").AppendChunk binTmp
rs.Update
讀出和顯示:
以下為引用的內(nèi)容:
http://www.aspku.com/database/access/show.asp:
<%
dim P
dim L
L = 8192
dim conn,rs,strSql
set conn=server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &server.MapPath(".") & "db2.mdb;Persist Security Info=False"
set rs=server.CreateOb網(wǎng)站seo優(yōu)化課程ject("ADODB.Recordset")
strSql = "select * from tbImage"
Response.ContentType = "image/gif&qseo網(wǎng)站排名優(yōu)化軟件uot;
'Important!
rs.open strSql,conn,1,1
rs.movelast
do網(wǎng)站建設(shè)多少錢
P = rs("image").GetChunk(L)
Response.BinaryWrite P
IF LenB(P) < L then exit do
loop
%>
在html中:
相關(guān)個(gè)業(yè)網(wǎng)站建設(shè)公司網(wǎng)站推廣優(yōu)化seo。
聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-05-23 ,文章用ASP顯示ACCESS數(shù)據(jù)庫(kù)的GIF圖象建站知識(shí)主要講述圖象,標(biāo)簽,用ASP顯示ACCESS數(shù)據(jù)庫(kù)的GIF圖象建站知網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_5972.html
為你推薦與用ASP顯示ACCESS數(shù)據(jù)庫(kù)的GIF圖象建站知識(shí)相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12