pateketrueke me he puesto a analizar tu comentario y tienes mucha razón me hacía falta hacer la impresión, el código ya funciona solo le agregue una línea, aquí se los dejos..
muchas gracias!!
Código PHP:
Ver originalwhile($f_anexos=sqlsrv_fetch_array($res_anexos))
{
$tipo_anexo = "";
$link_anexo = "";
$anexos++;
if ($f_anexos['tipo'] == "IMAGEN")
{
$anexo= $f_anexos['anexo'];
echo $anexo;
$extension = "jpg";
$tipo = "jpg";
$nombre="imagen";
header("Content-type: image/jpg"); header("Content-Transfer-Encoding: Binary"); //header('Content-length: 100');
header('Content-disposition: attachment; filename="'.$nombre.'.'.$extension.'"'); }
}