Go, Machine Learning, AWS, Programming, Cloud.
"text", Text: msg, Source: nil, }, }, }, }, } The imageContents in Data attribute is the base64 encoded version of the image which is calculated like this: func readImageAsBase64(filePath string) (string, error) { imageFile, err := os.ReadFile(filePath) if err != nil { return "", err }