You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
By using your solution as below
BaasFile.fetchStream("ef2162d9-919c-48f8-b76f-13e25ab25250",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 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.
The text was updated successfully, but these errors were encountered: