add method for saving an input stream into a named binary store