hello everyone,
How can I convert base64 to image using Blob field. Can someone provide me the code for it.?
hello everyone,
How can I convert base64 to image using Blob field. Can someone provide me the code for it.?
hi,
Can you try this?
var Media: Record "Tenant Media"; Base64: Codeunit "Base64 Convert"; Mime: Text; instr: Instream; begin Clear(output); Clear(Media); if Media.get(mediafield.MediaId) then BEGIN Media.CalcFields(Content); if Media.Content.HasValue then begin Clear(instr); Media.Content.CreateInStream(instr, TextEncoding::WINDOWS); output := Base64.ToBase64(instr); end; end;
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156