title: How do I take a ByteArrayInputStream and have its contents saved as a file on the filesystem
body: <p>I have an image which is in the form of a ByteArrayInputStream. I want to take this and make it something that I can save to a location in my filesystem.</p>
  
  <p>I've been going around in circles, could you please help me out.</p>