hi all,
i am working on a tool which reads email files from different clients .some emails from yahoo and gmail are getting encoded with base64 content-transfer-encoding.
i am trying to find a solution to decode these files into readable text format .
i have tried to convert the files by the below code.
But no luck
DEFINE VARIABLE decdmptr AS MEMPTR NO-UNDO.
DEFINE VARIABLE decdlngc AS LONGCHAR NO-UNDO.
COPY-LOB FROM FILE "C:\myicons\testencode" TO decdlngc.
decdmptr = BASE64-DECODE(decdlngc).
COPY-LOB FROM decdmptr TO FILE "C:\myicons\test.ico".
Any suggestions would be helpful.
opendge 11.3 in linux environent .
i am working on a tool which reads email files from different clients .some emails from yahoo and gmail are getting encoded with base64 content-transfer-encoding.
i am trying to find a solution to decode these files into readable text format .
i have tried to convert the files by the below code.
But no luck
DEFINE VARIABLE decdmptr AS MEMPTR NO-UNDO.
DEFINE VARIABLE decdlngc AS LONGCHAR NO-UNDO.
COPY-LOB FROM FILE "C:\myicons\testencode" TO decdlngc.
decdmptr = BASE64-DECODE(decdlngc).
COPY-LOB FROM decdmptr TO FILE "C:\myicons\test.ico".
Any suggestions would be helpful.
opendge 11.3 in linux environent .