[Info-vax] Encoding a file to base64 from COBOL?
Bob Koehler
koehler at eisner.nospam.decuserve.org
Wed May 8 09:24:29 EDT 2019
In article <dd0d62df-3185-4fa8-b483-c926207e2758 at googlegroups.com>, simonsspamfilter at gmail.com writes:
> I am looking at a COBOL program that puts together a mime-file that is sent=
> in a later stage. I wish to add a new part to this program that includes a=
> .pdf-file, but run in to issues if the data isn't BASE64-encoded. I know t=
> hat mime tools can encode the data from the same file to BASE64 which makes=
> it work, but is there any way I can get around to doing this myself from a=
> COBOL-program?
If you are working on VMS, you can pick up existing code in other
compiled laguages, and call it from you COBOL program. Other OS
may not support that as readily.
You will need to compare concepts in the language User's Guide for
each language to determine how to access different parameter passing
methods, data sizes, and string storage techniques for each language.
More information about the Info-vax
mailing list