Aleks Level: Scholar

 Registered: 10-11-2003 Posts: 32
|
Re: Uploading Picture with database in ASP
in the <IMG> tag into the ASP add to "src" statement the link to an ASP page that serves the image uploaded previous for ex:
<IMG src="showimg.asp?img=100">
when
showimg.asp -> the asp page that query via "SELECT blah... FROM balh WHERE IDblah = " & request.QueryString("img"),
the image field matched from the table and got in the code the next line:
<% Response.ContentType = "image/gif" or "image/jpg"
Response.BinaryWrite rstResult("imgfield").value %>
this is a cheap example, but is almost right. try with this way.
____________________________
Aleks
|