Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
143
export
function
bufferToBase64(buffer: Buffer): string {
144
return
buffer.toString(
'base64'
)
145
}
146
147
/**
148
* Create message content from file data
Callers
2
readUserFileContent
Function · 0.90
createFileContent
Function · 0.85
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected