Martin has informed me that Microsoft doesn't support SQLDescribeParam and in the absence of an explicit bind_param, miscasts the data as VARCHAR.
$sth->bind_param(1, undef, SQL_LONGVARBINARY); Solved the problem.
Martin has informed me that Microsoft doesn't support SQLDescribeParam and in the absence of an explicit bind_param, miscasts the data as VARCHAR.
$sth->bind_param(1, undef, SQL_LONGVARBINARY); Solved the problem.