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');