Fixed reading in blobs from SQL