Handle byte[] type in StatementHelper and correct SQLException (#13305).

Change-Id: I235ebe6250b9c03bbea393df7e8eb8823d119a2c