{"id":20741097,"url":"https://github.com/robtimus/data-url","last_synced_at":"2025-07-29T10:05:14.557Z","repository":{"id":57722444,"uuid":"115195614","full_name":"robtimus/data-url","owner":"robtimus","description":"Support for data URLs as specified in RFC 2397 (https://www.ietf.org/rfc/rfc2397.txt)","archived":false,"fork":false,"pushed_at":"2025-07-12T12:49:30.000Z","size":639,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T15:50:44.136Z","etag":null,"topics":["data-uri","data-url","java","rfc-2397"],"latest_commit_sha":null,"homepage":"https://robtimus.github.io/data-url/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robtimus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-23T12:58:13.000Z","updated_at":"2025-07-12T12:49:33.000Z","dependencies_parsed_at":"2023-02-15T17:31:19.696Z","dependency_job_id":"e1d051b5-f465-41eb-a291-88ce98760ce3","html_url":"https://github.com/robtimus/data-url","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/robtimus/data-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fdata-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fdata-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fdata-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fdata-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robtimus","download_url":"https://codeload.github.com/robtimus/data-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fdata-url/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668315,"owners_count":24124963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-uri","data-url","java","rfc-2397"],"created_at":"2024-11-17T06:33:46.928Z","updated_at":"2025-07-29T10:05:14.502Z","avatar_url":"https://github.com/robtimus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-url\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.robtimus/data-url)](https://search.maven.org/artifact/com.github.robtimus/data-url)\n[![Build Status](https://github.com/robtimus/data-url/actions/workflows/build.yml/badge.svg)](https://github.com/robtimus/data-url/actions/workflows/build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Adata-url\u0026metric=alert_status)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Adata-url)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Adata-url\u0026metric=coverage)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Adata-url)\n[![Known Vulnerabilities](https://snyk.io/test/github/robtimus/data-url/badge.svg)](https://snyk.io/test/github/robtimus/data-url)\n\nThe `data-url` library adds support for the `data` protocol as specified in [RFC 2397](https://www.ietf.org/rfc/rfc2397.txt).\n\nThere are several ways to create data URLs. Most are described by the [URL](https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#URL-java.lang.String-java.lang.String-int-java.lang.String-) class.\n\n1. Make use of a shared [URLStreamHandlerFactory](https://docs.oracle.com/javase/8/docs/api/java/net/URLStreamHandlerFactory.html) set on the [URL](https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#setURLStreamHandlerFactory-java.net.URLStreamHandlerFactory-) class. This must return an instance of [Handler](https://robtimus.github.io/data-url/apidocs/com/github/robtimus/net/protocol/data/Handler.html) for the `data` protocol.\n2. Add package `com.github.robtimus.net.protocol` to system property `java.protocol.handler.pkgs`.\n3. Use [this](https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#URL-java.net.URL-java.lang.String-java.net.URLStreamHandler-) URL constructor, and provide an instance of [Handler](https://robtimus.github.io/data-url/apidocs/com/github/robtimus/net/protocol/data/Handler.html) as the [URLStreamHandler](https://docs.oracle.com/javase/8/docs/api/java/net/URLStreamHandler.html). The `context` argument can remain `null`.\n    * It's ill-advised to use [this](https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#URL-java.lang.String-java.lang.String-int-java.lang.String-java.net.URLStreamHandler-) constructor, because it does not ensure the data URL is correctly formatted.\n4. Use utility class [DataURLs](https://robtimus.github.io/data-url/apidocs/com/github/robtimus/net/protocol/data/DataURLs.html).\n\nNote that class [Handler](https://robtimus.github.io/data-url/apidocs/com/github/robtimus/net/protocol/data/Handler.html) is stateless, and therefore instances can be shared among multiple threads.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fdata-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtimus%2Fdata-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fdata-url/lists"}