Added uploadApplication() method that takes an InputStream.