I tried both of them BUT The first one throw an OutofMemoryException for files > 1.5 Mbyte (is this some kind of bug ??) And the second one doesn't throw any Exception or Error but it does NOT write anything in the database !!
I did something wrong ? Has anyone experience in r/w blobs in postgres through jdbc ??