| read_image | R Documentation | 
Reads an image file from the given path and encodes it as a base64 string. Used internally for Gemini API image upload.
read_image(img_path)
| img_path | Path to the image file. | 
Base64-encoded string of the image, or NULL if the file does not exist.
## Not run: 
base64_img <- read_image("cat.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.