DataUrl
Namespace: Vercel.AI.Util
public static class DataUrlReads text from text/* data URLs.
Inheritance: object
Methods
Section titled “Methods”GetTextFromDataUrl(string?)
Section titled “GetTextFromDataUrl(string?)”public static string GetTextFromDataUrl(string? dataUrl)Decodes a text/* data URL. Without a charset the decoded bytes are returned as Latin-1 text.
Parameters
| Name | Type | Description |
|---|---|---|
dataUrl |
string |
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product