Answer the question
In order to leave comments, you need to log in
How to copy GIF from website and output in JavaFX?
Studying the docks and methods, I see that only the file is being copied from the local location.
Question - Is it possible to somehow copy the gif from the site and display JavaFX without special crutches? So that there is no process ALL the time of downloading GIFs. Without WebView, because this is not an option. Please help.
Answer the question
In order to leave comments, you need to log in
Well, implement it, pull the desired file somewhere locally, say in% temp% and from there display it in imageview. In order not to download each time, check for the presence of the file and the size match.
Those. there is a url of the picture, there is a place where your cache is located, first look by the name if there is a file or not, then by the size of the file that is stored in the cache and on the site, if it is the same, then just display it, and if it is different or there is no file, then load it into the cache . In the absence of an Internet, you simply stupidly take a picture from the cache, and if there is no Internet and this picture in the cache, then display a stub from the resources that come with your program.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question