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

Function bufferToBase64

apps/sim/lib/uploads/utils/file-utils.ts:143–145  ·  view source on GitHub ↗
(buffer: Buffer)

Source from the content-addressed store, hash-verified

141 * Convert a file buffer to base64
142 */
143export function bufferToBase64(buffer: Buffer): string {
144 return buffer.toString('base64')
145}
146
147/**
148 * Create message content from file data

Callers 2

readUserFileContentFunction · 0.90
createFileContentFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected