MCPcopy Create free account
hub / github.com/pollinations/pollinations / arrayBufferToBase64

Function arrayBufferToBase64

packages/mcp/src/utils/coreUtils.js:233–235  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

231 * @returns {string} - Base64 encoded string
232 */
233export function arrayBufferToBase64(buffer) {
234 return Buffer.from(buffer).toString("base64");
235}
236
237/**
238 * @param {number} status - HTTP status code

Callers 5

respondAudioFunction · 0.90
sayTextFunction · 0.90
generateImageFunction · 0.90
generateImageBatchFunction · 0.90
generateVideoFunction · 0.90

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected