Hello, I am trying to make an image loading librar...
# compose-web
d
Hello, I am trying to make an image loading library that loads images from urls and other stuff, is there a way to load an image on
JS
from local files?
or can you show me an example how to use
Image
?
h
Your web browser does not have access to your local file system, for good reasons. If you want to include images, just use the regular HTML img tag/function.
d
I changed my implementation to use
ktor
and read the bytes and then use
Image.makeFromEncoded
, for desktop it works,
JS
doesn't work for me yet, I'll have to check why it shows me an error
Cannot GET /