I have a very large string (250.000 chars) in a BigText variable, the string is coded Base64...
I want to decode the string and save it to another BigText variable, but I don't know how??
*This post is locked for comments
I have a very large string (250.000 chars) in a BigText variable, the string is coded Base64...
I want to decode the string and save it to another BigText variable, but I don't know how??
*This post is locked for comments
Solved it.... :D
abpBigPDFText BigText
abpAutConvertBase64 DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Convert
abpAutBytes DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Array
abpAutMemoryStream DotNet 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.MemoryStream
abpOutStream OutStream
abpRecTempBlob Record TempBlob
abpAutBytes:=abpAutConvertBase64.FromBase64String(abpBigPDFText);
abpAutMemoryStream:=abpAutMemoryStream.MemoryStream(abpAutBytes);
abpRecTempBlob.Blob.CREATEOUTSTREAM(abpOutStream);
abpAutMemoryStream.WriteTo(abpOutStream);
abpRecTempBlob.Blob.EXPORT('c:\temp\test.pdf');
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