MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / blobToFile

Function blobToFile

src/utils/urlUtils.ts:96–98  ·  view source on GitHub ↗
(blob: Blob, filename: string)

Source from the content-addressed store, hash-verified

94 * Create a File object from fetched blob.
95 */
96export function blobToFile(blob: Blob, filename: string): File {
97 return new File([blob], filename, { type: blob.type });
98}
99
100/**
101 * Percent-encode each segment of a relative URL path, preserving slashes.

Callers 3

fetchManifestFileFunction · 0.90
fetchSplatUrlFileFunction · 0.90
fetchRemoteSplatFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected