Hi
With the following script I try to open bitmaps that are stored in a MS-Access database on a IIS server
<?
$Connection = odbc_connect("foto", "", "");
$Query = "SELECT foto FROM fotos Where nr='1'" ;
$Result = odbc_do($Connection, $Query);
odbc_binmode($Result,ODBC_BINMODE_PASSTRHU);
odbc_longreadlen($Result,0);
odbc_fetch_row($Result);
header("Content-type: image/bmp");
odbc_result($Result, 1);
odbc_close($Connection);
?>
The result is not a bitmap but a lot of characters.
What did I do wrong?
Thanks in advance for your help.