MCS Storage API retrieve data
Summary
MCS Storage API retrieve dataContent
Hi,
I tried the Oracle MCS(Mobile Cloud Service) SDK in native android below.
Storage storage = (Storage) MobileBackendManager.getManager().getDefaultMobileBackend(this).getServiceProxy(Storage.class);
StorageCollection collection = storage.getStorageCollection("dbcollection");
StorageObject object = new StorageObject("ANDROID", "Hello Windows from Mobile Cloud Service".getBytes(), "plain/text");
object.setDisplayName("textFile.txt");
collection.put( object );
Everything is working fine.
Until i tried to retrieve data.
StorageObject storageObject = collection.get("ANDROID");
byte[] data = storageObject.getPayloadBytes();
Log.i("TESTING:", new String(data) );
I get the result below:
������������ �H���W ��K�//VH+��U��O��IUp��/MQ N-*�LN �������� ���) �'������
How to get back the content as i save in Storage Platform?