Skip to content

Download/Retrive Files from Baasbox console #2

@avaiyakirtib

Description

@avaiyakirtib

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions