Hi ALL
I wont to select an Image in my DB2 Database and display it.
Are there better solutions then this: ?
$Link_ID = odbc_connect("DSN", "user", "pass"
;
$Query_ID = odbc_exec($Link_ID, "SELECT picture FROM Previews"
;
// change to ODBC_BINMODE_CONVERT for comparison
odbc_binmode($Query_ID, ODBC_BINMODE_RETURN);
$Images = odbc_result($Query_ID, 1);
echo $Images;
I wont to select an Image in my DB2 Database and display it.
Are there better solutions then this: ?
$Link_ID = odbc_connect("DSN", "user", "pass"

$Query_ID = odbc_exec($Link_ID, "SELECT picture FROM Previews"

// change to ODBC_BINMODE_CONVERT for comparison
odbc_binmode($Query_ID, ODBC_BINMODE_RETURN);
$Images = odbc_result($Query_ID, 1);
echo $Images;