$result = mysql_query("SELECT Imagen FROM tu_table WHERE Id_imagen=1"); $result_array = mysql_fetch_array($result); header("Content-Type: image/gif"); echo $result_array[0];