# Export Image to File

> Save image output from a Datahub dataflow as a file.

The Export Image to File node saves images from a dataflow to a file system location. Images are retrieved from a column in the input data and written to the selected destination folder. A file name can be provided directly or retrieved from a column in the input data. The node processes each row individually and creates a separate file for each image.

Steps:

1. Select a valid File Source connection.
2. Select the destination Folder.
3. Select the Image Column that contains the image data.
4. Specify the File Name or select a column containing the file name.
5. Select the output format.
6. Execute the node: the images are saved to the selected destination.

## Configuration

| Setting | Required | Description |
| --- | --- | --- |
| File Source | Yes | The file system connection used to store the image files. |
| Folder | Yes | The destination folder where the image files should be created. |
| Image Column | Yes | The column containing the image data: binary or Base64 encoded. Each row is processed individually. |
| File Name | Yes | A fixed file name or a column containing the file name (e.g. `invoice.png`, `[FileName]`). |
| Save As | Yes | The output format: PDF, JPG, or PNG. |

## Output

This node does not return image data: the images are written directly to the configured destination folder.

## Tips

- Ensure that the Image Column contains valid image data.
- Use dynamic file names to prevent files from overwriting each other.
- Use PNG when image quality should be preserved.
- Use JPG when smaller file sizes are preferred.
- Verify that the selected destination folder is writable by the configured connection.