Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

HOW TO: Convert binary encoded Kafka data into string format using Informatica PowerCenter
Solution
To convert binary encoded data to string, use Java transformation in the mapping with the following code:

Define the following in helper code:
String data_str;
byte[] actualByte;
 
In the input row, write the following code:
data_str= null;
data_str= new String(data);
actualByte= Base64.getDecoder().decode(data_str);
data_dec= new String(actualByte);
 
Here, data (binary datatype) is input port and data_dec (String datatype) is output port.
More Information
Reference
Applies To
Product: PowerExchange; PowerCenter
Problem Type: Configuration
User Type: Developer
Project Phase: Implement
Product Version:
Database:
Operating System:
Other Software:
Attachments
Last Modified Date:7/7/2020 12:46 PMID:619629
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)