Change the way to conversion between blob and bytea