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'm using another library to load images through a file so that images may be loaded in parts in its full resolution, and be zoomable.
In short, the only output I need is to a file, and the image may be large.
I'd like to make use of some form of caching so that such large files are not downloaded each time.
However, Glide's targets seem to be namely for drawables or bitmap, and asFile seems to be for local files rather than downloading to a file.
Is there any output that targets an input stream or any other format that doesn't load everything at once?
The text was updated successfully, but these errors were encountered:
I'll leave this up for discussion for now, but it seems like OkHttp + saving the file with the name as the url hash + clearing out the directory for files older than xxx minutes seems to be alright
In general it's better to use Glide as an image loading library and use a networking library like OkHttp as you've suggested to manage downloads. If they overlap and you sometimes want the file and sometimes want to load the image or thumbnails of the image, using Glide can make sense.
I'm using another library to load images through a file so that images may be loaded in parts in its full resolution, and be zoomable.
In short, the only output I need is to a file, and the image may be large.
I'd like to make use of some form of caching so that such large files are not downloaded each time.
However, Glide's targets seem to be namely for drawables or bitmap, and
asFile
seems to be for local files rather than downloading to a file.Is there any output that targets an input stream or any other format that doesn't load everything at once?
The text was updated successfully, but these errors were encountered: