Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/08/2004, 12:54
Avatar de buliwyf
buliwyf
 
Fecha de Ingreso: diciembre-2001
Ubicación: Caracas
Mensajes: 221
Antigüedad: 23 años, 4 meses
Puntos: 1
... Y la luz se hizo!!!
no es necesario convertirlo a nada si lo que quieres es descargarlo....
Código:
<%
Set objtxt = Server.CreateObject("ADODB.Stream")
objtxt.Open
objtxt.Type = adTypeBinary
objtxt.LoadFromFile Server.MapPath("archivo.txt")
ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment; filename=archivo.txt"
Response.Charset = "UTF-8"
Response.ContentType = ContentType
Response.BinaryWrite objtxt.Read
Response.Flush
objtxt.Close
Set objtxt = Nothing
%>
cuentanos como te fue
__________________
RTFM antes de preguntar...