title: Read h5 file using AWS boto3
body: <p>I am trying to read h5 file from AWS S3 using boto3.</p>
  
  <pre><code>client = boto3.client('s3',key ='key')
  result = client.get_object(Bucket='bucket', Key='file')
  with h5py.File(result['Body'], 'r') as f:
      data = f
  </code></pre>
  
  <p>TypeError: expected str, bytes or os.PathLike object, not StreamingBody</p>
  
  <p>Any idea?</p>
  
  <p>h5py version is 2.10, boto3 version is 1.7.58</p>
  
  <p>The same question was <a href="https://stackoverflow.com/questions/51759237/read-h5-file-using-aws-s3-s3fs-boto3">here</a>, but no answer... </p>