title: Loading numpy array from http response without saving a file
body: <p>I have a bunch of files containing numpy arrays at some url (e.g., <code>https://my_url/my_np_file.npy</code>) and I am trying to load them in my computer.</p>
  
  <p>If I download the file manually, I can properly load the numpy array using <code>np.load('file_path')</code>. If I take the url reponse (using the code below), save the content to a file and then use <code>np.load()</code>, it also works.</p>
  
  <pre><code>response, content = http.request('https://my_url/my_np_file.npy')
  </code></pre>
  
  <p>If I try to load the array from the content string, I get the error bellow. This is likely because the <code>np.load</code> is interpreting the string input as a name for the file, rather than the data itself.</p>
  
  <blockquote>
    <p>File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line
    370, in load
        fid = open(file, "rb") TypeError: file() argument 1 must be encoded string without null bytes, not str</p>
  </blockquote>
  
  <p>Is there any way to load the array without having to save a file?</p>