Added methods to get profilea via InputStream and URI.