what is the proper way to modify/replace the schema file of a ClientSemanticLayerDataSource using rest java client (jrs-rest-java-client-6.3.0)?
i tried using
SingleResourceAdapter resAdapter = session.resourcesService().resource(schemaUri);
ClientFile cf = (ClientFile) resAdapter.details().getEntity();
After the update, when trying to get the schema resource back, the downloadBinary() seems returned content in gibberrish characters (I read from the InputStream and output to string. the content was OK before the createOrUpdate, but after createOrUpdate in the above steps, it became gibberish).
is this the proper way to modify/replace the xml schema using the rest java client?