0

I am not able to get the images stored in Parse-Server as a file, once I reinstall the app. It works fine while a user is logged in but once the app is uninstalled only files are unable to access.It shows exception saying :- File doesn't exist . And I am not able to download image in parse server as well .It will redirect me to role section.

Tried changing version of parse in gradle.

I should be able to access images after reinstalling app. And I should be able to download image in parse.

code written to upload image-----------------------

ParseFile filename = new ParseFile("name.png", Byte);  
filename.saveInBackground();  
classObject.put("imagePic", filename);  
classObject.saveInBackground();  

Retrieving from Parse server--------------

file.getDataInBackground(new GetDataCallback() {  
    @Override  
    public void done(byte[] data, ParseException e) {  
        if(e == null) {  
            if(data != null) {  
                Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0,data.length);  
                imageView.setImageBitmap(bitmap);  
            }
        }
});

0 Answers0