stream_blob_to_fd: detect errors reading from stream