1
1
101-s2019-02-04 20:34:18
Android
101-s, 2019-02-04 20:34:18

Glide how to upload a file (just a file)?

There is a Glide library for loading images and working with them, everything works great, but I can’t figure out (and can this be done or not?) how to load a file on a device using it without .into(imageView) ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2019-02-04
@iLLuzor

In any case, the file is downloaded to the device and stored in a special glide cache.
It's just hard to get it out of there. glide itself does not provide any means for this.
You can simply upload the image file to disk and load this file through glide by uri.

D
Denis Zagaevsky, 2019-02-04
@zagayevskiy

Use custom target like
https://bumptech.github.io/glide/doc/targets.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question