Create new method for get a resource stream.