Resource handling as PDO::PARAM_LOB