Ver Mensaje Individual
  #7 (permalink)  
Antiguo 03/10/2007, 11:47
Avatar de @ndreX!
@ndreX!
 
Fecha de Ingreso: abril-2007
Mensajes: 161
Antigüedad: 17 años, 10 meses
Puntos: 4
Re: Problema con los campos Blob

Ahhh... y si pruebas algo asi:

Código PHP:
<?
    $cod 
$_GET['cod'];
    
header("Content-type: binary");
    require (
"Clase_Firebird.php");
    
    
$miconexion  = new DB_Fire ;
    
$Conexion    $miconexion->conectar();
    
$miconexion6 $miconexion->consulta($Conexion,"SELECT A.CORREGIR_ERROR FROM T006_ERRORES A WHERE A.CO_ERROR = ".$cod);
    
$fila2          ibase_fetch_object($miconexion6);
    
    
$image = @imagecreatefromstring($fila2->CORREGIR_ERROR);
    if(
$image){
        
header("Content-type: image/jpeg");
        
imagejpeg($image);
    else{
        
header("Content-type: binary");
        
ibase_blob_echo($fila2->CORREGIR_ERROR); 
    }
?>
Saludos