Recommandé: interpréter le code de l'injection anti-SQL ASP Ce qui suit est le contenu référencé: DIM SQL_INJDATA, SQL_INJ, SQL_GET, SQL_DATA, SQL_POST SQL_INJDATA = '| et | EXERT | INSERT | SELECT | DELETE | UPDATE |
Écrire:
1: Lisez le fichier d'image GIF dans la mémoire (une variable StrTemp).
2: Écrivez dans la base de données.
| Ce qui suit est le contenu cité: Dim bintmp () comme octet Dim Conn comme Adodb.Connection DIM RS comme ADODB.Recordset DIM STRSQL comme chaîne Définir Conn = New Adodb.Connection Set rs = nouveau adodb.recordset Conn.Open DB strSql = select * from tbimage Rs.Open StrSql, Conn, 1, 3 OpenFile (Bayshore.jpg) 'Veuillez implémenter la fonction OpenFile vous-même Rs.Addnew Rs.fields (image) .APPENDCHUNK BINTMP Rs.Update |
Lire et afficher:
| Ce qui suit est le contenu cité: show.asp: <% talent dim l L = 8192 Dim Conn, RS, StrSQL Définir 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.createObject (adodb.recordSet) strSql = select * from tbimage Response.ContentType = Image / GIF 'Important! Rs.Open StrSql, Conn, 1,1 Rs.Movelast faire P = RS (image) .getChunk (L) Réponse.Winarywrite p Si Lenb (p) <l alors sortez faire boucle %> |
En html:
<image src = show.asp>
Partager: comment déterminer si l'image distante existe Ce qui suit est le contenu référencé: compétences ASP pour déterminer si l'image distante existe [ASP Code] Fonction Checkurl (Byval A_strurl) SET XMLHTTP = Server.CreateObject (& Q