Support Topics Documentation Slack YouTube Blog

How to retrieve images saved in file without Url?


(Surya Ganesh) #1

Hello,
I am uploading images in file ,so I get a reference to that file which I supposed to save for future use.Is there is a way to directly access the images in files without using the url generated.
Please help me in this issue


(Mark Piller) #2

Hello,

Yes, you can “calculate” the URL without waiting for the upload result. Please see the documentation for details: https://backendless.com/docs/rest/files_file_download.html#downloading-a-file-via-api

Regards,
Mark


(Surya Ganesh) #3

How to use Backendless.Files.Android.getFileCount(String path);
What should be the path?
Please explain!!
Thank You


(Anton Govorushkin) #4

Hi, all files stored in Backendless are available in Files section of your Backendless console.
This is the “root” directory. If you’d like to get count of files in “logging” directory your request would look this:

Backendless.Files.getFileCount("logging");

Example with a pattern (search condition, second optional parameter in getFileCount() method), f.e count all html files in “web” directory:

Backendless.Files.getFileCount("web", "*.html");

Anton


(Surya Ganesh) #5

Thank Man!! Cheers!!


(Surya Ganesh) #6

W/OkHttpClient: A connection to https://backendlessappcontent.com/ was leaked. Did you forget to close a response body?

This was displayed in terminal .
What does it mean and how to remove it…?
Thank You

Note :I am Accessing the images in Files.


(Vladimir Upirov) #7

Hi Surya
Could you please provide a full url what you are trying to load image with?

Here is my url what I just tried and it works
https://backendlessappcontent.com/7E25B48A-05FA-0B5D-FFAE-63CC0AC26C00/E9920D04-8F81-D6EC-FFBB-4D4D78486100/files/ava_big+copy.jpg

Regards, Vlad