Paul Merlin
Paul Merlin
First step of the above plan in * https://github.com/gradle/gradle/pull/26789
@Tapchicoma, is there a way for us to detect that the check would fail beforehand? I'm asking in the context of the second point of the plan above. Maybe the...
This might be related to the upstream ktor issues * https://github.com/ktorio/ktor/issues/1903 * https://youtrack.jetbrains.com/issue/KTOR-360
HTTP `Content-Type` header could be a good source of information for this
The `file` URI scheme is not specific to the JVM https://datatracker.ietf.org/doc/html/rfc8089 There's no `URI` type in Kotlin common so `asyncPainterResource(URI("file://path/to/image.png"))` doesn't work. I'll give the custom mapper way a try.
Using `asyncPainterResource(io.kamel.core.utils.URI("file://path/to/image.png"))` in my JVM `actual` doesn't load the image. I'll stick with my "dirty" workaround for now that basically does this on the JVM: ```kotlin when { url.startsWith("file:") ->...
Ha! :) The path is right as I can load the image if I pass a `java.io.File` built from it. I tried many variations but it doesn't work on Linux...
Right, the image path I use is for a png file from the OS file system, outside the application resources.
I just tried and it fails by default parsing a `file:/path/to/image.png` URL which is what I get from other APIs. If I manually change the URL to `file:///path/to/image.png` then it...
Here's the KTOR issue https://youtrack.jetbrains.com/issue/KTOR-6709