IBM Support

Decoding BASE64 encoded strings using WTX 8.4

Troubleshooting


Problem

It is possible to decode BASE64 encoded strings using WebSphere® Transformation Extender (WTX) 8.4 despite the lack of a BASE64 adapter. This is accomplished by enveloping the BASE64 content in a temporary MIME wrapper and then parsing that data through the MIME adapter.

Symptom

As the BASE64 adapter is no longer part of the WTX product from version 8.4, any map which attempts to use this adapter will end with a -99999 Adapter Not Found error.

Cause

BASE64 adapter no longer part of the WTX product.

Diagnosing The Problem

Here is an example showing how to use this technique.

In the Images sub-directory, you can run the 'Master.mmc' map, to have the 'BASE64.txt' converted to 'image1.jpg'. Additionally, in the Text sub-directory, you can run the 'Master.mmc' map, to have the 'BASE64.txt' converted to 'output.txt'.

attachment_14870355_MIME_example.zipattachment_14870355_MIME_example.zip

Resolving The Problem

Enveloping the BASE64 content in a temporary MIME wrapper and then parse that data through the MIME adapter.

[{"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"MIME Adapter","Platform":[{"code":"PF010","label":"HP-UX"},{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"},{"code":"PF035","label":"z\/OS"},{"code":"PF002","label":"AIX"}],"Version":"8.4.0.3;8.4.0.2;8.4.0.1;8.4.0.0;8.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

More support for:
IBM Transformation Extender

Software version:
8.4.0.3, 8.4.0.2, 8.4.0.1, 8.4.0.0, 8.4

Operating system(s):
HP-UX, Windows, Solaris, Linux, z/OS, AIX

Document number:
211831

Modified date:
29 September 2018

UID

swg21606757