- Joe Hess
- PowerBuilder
- Wednesday, 31 October 2018 09:11 PM UTC
Every now and then, I receive an error using Base64Encode. The message is "Please make sure that the encryption dynamic library has already existed." The code is below, offending line in bold. This message does not appear to come from a thrown exception. The reported error line is 16 of this function.
Any ideas what may cause this?
Thanks!
// Convert the current user/password to base64.
STRING ls_userName, ls_authorizationKey
CODEROBJECT lnv_coderObject
lnv_coderObject = Create CODEROBJECT
// Avatax-defined key to convert
IF ( f_invalidstr ( as_userName ) ) THEN
ls_userName = SQLCA.LogID + ':' + cs_prefix + SQLCA.LogPass
ELSE
ls_userName = as_userName
END IF
// Base 64 encoding
try
as_authorizationKey = lnv_CoderObject.Base64Encode(Blob(ls_userName,EncodingUTF8!))
catch (Exception se)
astr_error = f_logError ('Encoding Error', se.getMessage(), '')
end try
RETURN (f_invalidstr(astr_error.message))
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.