Kbase P128970: BASE64-DECODE can fail because of line breaks
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/04/2011 |
|
Status: Unverified
SYMPTOM(s):
Longchar contains base64-encoded data
base64-encoded data includes line break characters (LF or CR+LF)
BASE64-DECODE function fails to decode data
Error converting Base64 to RAW (12119)
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1x
CAUSE:
Bug# OE00165411
FIX:
Workaround:
Remove all line break characters from the base64 encoded string before decoding. For example:
lcEnc = REPLACE(lcEnc,CHR(0x0D),""). /* remove CR characters */
lcEnc = REPLACE(lcEnc,CHR(0x0A),""). /* remove LF characters */
mTemp = BASE64-DECODE(lcEnc).