No need to create typeHandler. For Oracle, jdbctype is BLOB
<result property="bytes" column="COLUMNBLOB" jdbcType="BLOB" />
Executing "bytes" as a byte [].
Important: in select sql you should set jdbcType like this:
INSERT INTO X (COLUMNBLOB) VALUES
I noticed that this jdbctype for Postgresql is different. You must install:
<result property="bytes" column="COLUMNBLOB" jdbcType="BINARY" />
source share