The proper fix is to not use Types.NULL which Sybase jConnect does not support. I changed that to use Types.VARBINARY instead which works on both jConnect and jTDS