See the API for Blob, in particular the getBinaryStream() method, which retrieves an InputStream