---
title: "get base64 · RUAL Documentation"
description: "Returns the base64 of the given file"
canonical: https://docs.rual.nl/block-types/files/file_get_base64
language: en
---

# get base64

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Returns the base64 of the given file

- file required `file`

- base64 `value`

- Data URL `value`

A typical wiring for [get base64](https://docs.rual.nl/block-types/files/file_get_base64): [move to public](https://docs.rual.nl/block-types/files/file_move_public) feeds the `file` pin; the `base64_normal` out pin feeds [set custom field](https://docs.rual.nl/block-types/mutations/mutations_set_custom_field); the `base64` out pin feeds [if](https://docs.rual.nl/block-types/value/value_branch).

![Studio canvas example for the get base64 block: typical wiring for get base64.](https://docs.rual.nl/canvas-examples/file_get_base64.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [set custom field](https://docs.rual.nl/block-types/mutations/mutations_set_custom_field): this block feeds into it.

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

- [if](https://docs.rual.nl/block-types/value/value_branch): this block feeds into it. Conditional branching for values (if.. then.. else..). Selects which input value is passed through; it does not route flow.

- [move to public](https://docs.rual.nl/block-types/files/file_move_public): feeds into this block. Moves the given files to a new public destination.

- [new object](https://docs.rual.nl/block-types/object/object_new_fields): this block feeds into it. Builds a new object filled with the given fields.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
