Hello everyone, is there a way to download from UR...
# compose-desktop
t
Hello everyone, is there a way to download from URLs using Compose Desktop? I have Firebase storage files that I want to download by showing a file explorer shell to the user to allow them to save it. I want to hide the URL of the file from Firebase.
a
It’s not in the scope of Compose, but because Compose for Desktop is based on Java, you have all the Java APIs available.
t
Thank you
s
Or if you want to open in a browser you can use:
Copy code
val localUrl = LocalUriHandler.current
localUrl.openUri(url)
And should open the browser in a system independent way
👍 1
m
And by using Ktor client (https://ktor.io/docs/getting-started-ktor-client.html) this could even be done in a multi-platform fashion.