It looks like you're new here. Sign in or register to get started.
procedure Encode(YourRecord: Record "YourRecord") var Base64Convert: Codeunit "Base64 Convert"; TempBlob: Codeunit "Temp Blob"; InStream: InStream; Base64Result: Text; begin YourRecord.CalcFields(YourBlobField); TempBlob.FromRecord(YourRecord, YourRecord.FieldNo(YourBlobField)); TempBlob.CreateInStream(InStream); Base64Result := Base64Convert.ToBase64(InStream); end
Answers
This should convert your blob field to base 64.