Announcements
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;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,496 Super User 2026 Season 1
YUN ZHU 961 Super User 2026 Season 1
Grigorios Mavrogeorgis 870 Super User 2026 Season 1