Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/03/2006, 05:25
rrufo
 
Fecha de Ingreso: enero-2002
Mensajes: 1.438
Antigüedad: 23 años, 3 meses
Puntos: 0
en vez de mostrar asi la imagen intenta, llamando otra pagina q te genere el binario

src="file.asp?ID=<%=rs("ID")%>"


donde le pasas por parametro una clave primaria y la web seria:

algo asi:

Código:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/MyEmpresas.asp" -->
<%
Dim rs__MMColParam
rs__MMColParam = "9"
If (Request.QueryString("Id") <> "") Then 
  rs__MMColParam = Request.QueryString("Id")
End If
%>
<%
Dim rs
Dim rs_numRows

Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_MyEmpresas_STRING
rs.Source = "SELECT * FROM empresa.pixel WHERE Id = " + Replace(rs__MMColParam, "'", "''") + ""
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()

rs_numRows = 0
%>
<%


      If Not rs.EOF Then
         Response.ContentType = rs("tipo")
         Response.BinaryWrite rs("imagen")
      End If

%>
<%
rs.Close()
Set rs = Nothing
%>