- Notifications
You must be signed in to change notification settings - Fork2.7k
Closed
Description
This line of code makes the get_file_contents tool produce corrupted output for most binary formats like pdf (application/pdf), .docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document) etc. since the data is not returned as byte64 encoded string:
ifstrings.HasPrefix(contentType,"application")||strings.HasPrefix(contentType,"text") { |
Here the corruption occurs:
Text:string(body), |
Solution is to byte64 encode all binary formats, just like in this line:
Blob:base64.StdEncoding.EncodeToString(body), |
Metadata
Metadata
Assignees
Labels
No labels