# invalid_file_encoding

> file.data is empty or not base64.

HTTP status: 400

## What to do

Encode the file's bytes as base64 in file.data.

## Example

```json
{
  "error": "invalid_file_encoding",
  "request_id": "0f8e2c4a-6b1d-4e3f-9a7c-5d2b8e1f4a60",
  "doc_url": "https://developers.komplai.dk/errors/invalid_file_encoding"
}
```

## Operations that can return it

- POST /v1/redact/file (https://developers.komplai.dk/reference/redact.md)
- POST /v1/redact/file/jobs (https://developers.komplai.dk/reference/redact.md)

---

https://developers.komplai.dk/errors/invalid_file_encoding
