Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2010, 05:27
jose_cab
 
Fecha de Ingreso: noviembre-2008
Ubicación: Barcelona
Mensajes: 52
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Verificar si es fichero IMAGE al bajar de URL con ServerXMLHTTP

ME RESPONDO YO MISMO.
Lo dejo aquí por si alguien lo necesita.

Solo hay que verificar que realmente la imagen nos llega y que no está vacia presentandose como un Array

Código:
'-- Verificamos si hay algo en la URL
If objHTTP.statusText <> "OK" Then	'-- La URL es incorrecta
   HayFoto = "0"
   Set objHTTP=Nothing
Else	
   If IsArray(objHttp.ResponseBody) = TRUE Then
      HayFoto = "1"
   Else                               '-- URL Correcta, pero NO hay Foto
      HayFoto = "0"
      Set objHTTP=Nothing
   End If						
End If
Funciona perfectamente.

Si alguien quiere mejorarlo, se agradece.

Saludos y buenas vacaciones a quie esté o las tenga que hacer