RFR: 8267551: Support loading images from inline data-URIs [v16]

Michael Strauß mstrauss at openjdk.java.net
Sat Jun 5 17:42:55 UTC 2021


On Sat, 5 Jun 2021 17:31:17 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> This PR adds support for loading images from [inline data URIs](https://en.wikipedia.org/wiki/Data_URI_scheme), which is also widely supported by web browsers. This enables developers to package small images in CSS files, rather than separately deploying the images alongside the CSS file.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added comment, simplified DataURI.matchScheme()

Since this implementation doesn't surface any new API, it will not prevent us from removing it at any future time when the "data" protocol might be supported by the JDK.

-------------

PR: https://git.openjdk.java.net/jfx/pull/508


More information about the openjfx-dev mailing list