Change the variables som and rotina to byte[] and then use pst.setBytes() instead of pst.setByte()
som
rotina
byte[]
pst.setBytes()
pst.setByte()