Foros del Web » Programando para Internet » ASP Clásico »

consulta!!!

Estas en el tema de consulta!!! en el foro de ASP Clásico en Foros del Web. Hola a todos: tengo una consulta, yo trabajo con delhpi donde guardo las imagenes y tambien con asp donde tambien las guardo, pero lo hago ...
  #1 (permalink)  
Antiguo 16/05/2006, 16:09
 
Fecha de Ingreso: marzo-2006
Mensajes: 36
Antigüedad: 19 años, 2 meses
Puntos: 0
consulta!!!

Hola a todos:

tengo una consulta, yo trabajo con delhpi donde guardo las imagenes y tambien con asp donde tambien las guardo, pero lo hago en forma independiente, o sea con delphi de una forma y con asp de otra.

por lo que me gustaria saber si habrá alguna forma de tomar esa imagen guardada en delphi, y mostrarla con asp.
  #2 (permalink)  
Antiguo 16/05/2006, 16:34
Avatar de u_goldman
Moderador
 
Fecha de Ingreso: enero-2002
Mensajes: 8.031
Antigüedad: 23 años, 4 meses
Puntos: 98
La verdad no entendí bien tu pregunta, podrías explicar un poco más que es lo que pretendes?

Saludos
__________________
"El hombre que ha empezado a vivir seriamente por dentro, empieza a vivir más sencillamente por fuera."
-- Ernest Hemingway
  #3 (permalink)  
Antiguo 16/05/2006, 16:34
Avatar de richardinj  
Fecha de Ingreso: enero-2005
Ubicación: Ciber Espacio
Mensajes: 2.180
Antigüedad: 20 años, 3 meses
Puntos: 11
???

Te refieres a mostrar la imagen que grabó delphi no?

Donde esta esa imagen.. en una BD o una Carpeta?

Saludos.
  #4 (permalink)  
Antiguo 17/05/2006, 10:03
 
Fecha de Ingreso: marzo-2006
Mensajes: 36
Antigüedad: 19 años, 2 meses
Puntos: 0
la imagen la guarda directamente en la base de datos, tanto para delphi, como para asp, por lo que mi pregunta es si se puede sacar esa imagen guardada en delhpi, y luego mostarla con asp, sin tener que guardar esa imagen que esta grabada en delphi.
  #5 (permalink)  
Antiguo 17/05/2006, 10:23
 
Fecha de Ingreso: enero-2006
Ubicación: Torroles (Costa der Só)
Mensajes: 1.017
Antigüedad: 19 años, 4 meses
Puntos: 7
ummm el objeto Response tiene un metodo llamado BinaryWrite que sirve para escribir codigo binario (imagenes, etc). Te pongo un ejemplo que viene en el Dreamweaver:

Código:
<% 

' The following code retrieves a binary object
' (in this case a JPG image) and writes it to the
' client using BinaryWrite. (For more information
' on ActiveX Data Objects usage, see Chapter 12.)

' Create an ADO connection object.
Set adoCon = Server.CreateObject("ADODB.Connection")

' Use the Open method of the Connection object
' to open an ODBC connection with the database
' represented by the DSN ImageDatabase.
adoCon.Open "ImageDatabase"

' Use the Execute method of the ADO Connection object
' to retrieve the binary data field from the database.
Set adoRecImgData = adoCon.Execute _
   ("SELECT ImageData FROM Images WHERE ImageId = 1234")

' Create a Field object by setting one equal to a
' specific field in the recordset created previously.
Set adoFldImage = adoRecImgData("ImageData")

' Use the ActualSize property of Field object to retrieve
' the size of the data contained in the Field object. After
' this line you will know how many bytes of data reside in
' the Field object.
lngFieldDataLength = adoFldImage.ActualSize

' Use the BinaryWrite method to write 4K bytes of binary
' data at a time. So, first we need to determine how many
' 4K blocks the data in the Field object represents.
lngBlockCount = lngFieldDataLength / 4096

' Now let's get how many bytes are left over after removing
' lngBlockCount number of bytes.
lngRemainingData = lngFieldDataLength Mod 4096

' We now must set the HTTP content type Response header
' so that the browser will recognize the data being sent
' as being JPEG image data.
Response.ContentType = "image/JPEG"

' Loop through and write the first lngBlockCount number
' of binary blocks of data.
For intCounter = 1 to lngBlockCount
   Response.BinaryWrite adoFldImage.GetChunk(4096)
Next

' Now write the last remainder of the binary data.
Response.BinaryWrite adoFldImage.GetChunk(lngRemainingData)

' Close the recordset.
adoRecImgData.Close
%>
¿Es esto lo que necesitas?


Un saludo
__________________
"Tus pecados son el estiércol sobre el que florecerán las flores de tus virtudes" - Gerald Messadié -
  #6 (permalink)  
Antiguo 17/05/2006, 13:15
Avatar de El_Metallick  
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago, Chile
Mensajes: 1.718
Antigüedad: 22 años, 6 meses
Puntos: 16
no entiendo bien... me das a entender que son 2 bases de datos??? porque de otra forma deveria funcionar... pero no entiendo muy bien tu duda
__________________
Haz la guerra en la cama y el amor donde se te de la gana...
El tiempo es el mejor maestro, lo único malo es que te mata...¡¡Aprovecha tu tiempo!!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:20.