-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I am using Baasbox Files retrieving code as below as per code given on the official site for files retrieving-
// load file in memory
BaasFile file = ...;
file.stream(new BaasHandler() {
@OverRide
public void handle(BaasResult res) {
if ( res.isSuccess() ) {
byte[] data = res.value().getData();
Log.d("LOG","File received");
} else {
Log.e("LOG","Error while streaming",res.error());
}
}
});
I am getting trouble while accessing BaasFile file = ...; , I am using BaasFile file = new BaasFile();
after at the time of getting file.stream it throws me error says "ID can not be null" , then I am using file.stream("ef2162d9-919c-48f8-b76f-13e25ab25250",new BaasHandler() { ....}; but it still trows same error,
So can you please guide me How can I retreive files from Baasbox.