when using directory structure src jvmMain/reso...
# multiplatform
j
when using directory structure src jvmMain/resources jsMain how does one get a resource from src/jvmMain/resources?
Copy code
javaClass.getResourceAsStream("blah.txt")
doesn't seem to work when using that directory structure, works fine when it's a normal
src/main/resources
structured project
c
javaClass.getResourceAsStream
is a JVM-only mechanism, and there currently is no built-in analog for MPP resources. There are a few libraries to bridge this gap, however: https://korlibs.soywiz.com/korio/ https://github.com/icerockdev/moko-resources