use byte[] instead of a stream when inserting a report in database