Use another setBinaryStream method that specifies stream length and that seems to be more supported on MSSQL.