--- title: save and saveSync description: Save encoded writer output with a platform filesystem or download API. hide_title: true page_style: designed --- import {DocPageHeader} from '@site/src/components/docs/doc-page-header'; `save` and `saveSync` are not exported by the current `@loaders.gl/core` package. Use [`encode`](./encode) or `encodeText` to create file contents, then deliver those contents with your application's storage or download API. ## Node.js example ```typescript import {writeFile} from 'node:fs/promises'; import {encode} from '@loaders.gl/core'; import {ZipWriter} from '@loaders.gl/archives/zip'; const bytes = await encode({'message.txt': 'Hello'}, ZipWriter); await writeFile('example.zip', new Uint8Array(bytes)); ``` In a browser, wrap the encoded bytes in a `Blob` and use the application's download or upload flow. See [Using writers](/docs/developer-guide/using-writers).