# Backend Codes & Tools

### Sending Files in Base64

\
Send us the file you want to parse in Base64 format, without any file reading or text extraction. Send it as raw Base64. For example, you can use the following code:

```python
import base64

def file_to_base64(file_path):
    with open(file_path, "rb") as file:
        base64_encoded = base64.b64encode(file.read()).decode("utf-8")
    return base64_encoded

# Example usage
file_path = "bill-gates.pdf"  # Change this to your file path
base64_string = file_to_base64(file_path)
print(base64_string)

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hirize.gitbook.io/hirize/getting-started/publish-your-docs/backend-codes-and-tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
