So i'm busy replacing all the old code that contains the Record TempBlob to codeunit "Temp Blob". Now I've done most of the changes but there are 2 functions remaining that I don't see an immediate replacement for. Those are the "Init()" and "FromBase64String()" functions.
In what way can I solve this problem?
Regards.
Hi,
In temporary table TempBlob, FromBase64String was used to write your base64 string converted, into the Blob field.
So now if you want to write a converted base64 string into your outstream you can use the "Base64 Convert" codeunit.
There is two overloads for FromBase64.
FromBase64(YourBase64String) returns YourBase64String converted
FromBase64(YourBase64String, OutStream) writes YourBase64String converted into the Oustream passed in the second parameter.
I wrote two examples of these methods you can use for your purpose: both of these downloads a file "myfile.txt" that contains "SGVsbG8gV29ybGQh" converted from Base64 (which means "Hello World!")
=>
Hope it will help you
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156