Compiled in IDE app can download IMG from URL, installed app can't
IntelliJ IDEA, kotlin 1.4.31, compose desktop 0.4.0, Gradle plugin for compile.
I use four simple strings of code for downloading and saving image files from url to programm folder
val url: URL = URL("
https://test.com/example.jpg▾
")
val img: BufferedImage = ImageIO.read(url)
val file: File = File("someName.jpg")
ImageIO.write(img, "jpg", file)
If I compile my app in IDEA and use any link it download images perfectly but when I create .exe file and install on pc...