Xojo Plugin
Xojo Plugin
Get Contents of File as Base64
See more Encryption Examples
Demonstrates how to read the contents of a file and convert to a base64 string.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim bd As New Chilkat.BinData
success = bd.LoadFile("qa_data/jpg/starfish.jpg")
If (success = False) Then
System.DebugLog("Failed to load file.")
Return
End If
System.DebugLog(bd.GetEncoded("base64"))
// If you want mult-line base64:
System.DebugLog("--")
System.DebugLog(bd.GetEncoded("base64_mime"))
// If you want hex..
System.DebugLog("--")
System.DebugLog(bd.GetEncoded("hex"))
// etc.