Leer data: URI
data-uri-parseAnaliza una URI data: en tipo MIME, parámetros, tamaño y contenido. Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: construir una URI data (data-uri-build). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Parses an RFC 2397 data: URI into MIME type, parameters, base64 flag, byte size and content (UTF-8 text when valid, otherwise base64). When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: building an RFC 2397 data: URI from text or base64 bytes and a MIME type, using base64 or percent-encoding (data-uri-build). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | data: URI (string; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| text | No | ||
| bytes | No | ||
| base64 | No | ||
| params | No | ||
| base64_content | No |