MCPcopy Index your code
hub / github.com/simstudioai/sim / toDataUrl

Function toDataUrl

apps/sim/providers/attachments.ts:270–272  ·  view source on GitHub ↗
(mimeType: string, base64: string)

Source from the content-addressed store, hash-verified

268}
269
270function toDataUrl(mimeType: string, base64: string): string {
271 return `data:${mimeType};base64,${base64}`
272}
273
274function isMimeTypeSupportedByProvider(
275 provider: AttachmentProvider,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected