Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

To manage Images on a Database

To manage the images saved on a database..
We need a BLOB (Binary Large OBject) field on the table.


<%
' Connection to the database
Set rs = conn.Execute("SELECT [myImage] FROM [myTable] WHERE ID=33")
Response.ContentType = "image/jpeg"
Response.BinaryWrite (rs("img"))
rs.Close
set rs = Nothing
%>


Download code...


Print this page


 

Inizio pagina

risorse per webmaster