Does anyone know how to take text and encode to base 64?
My data is xml text stored as a blob in the database. Then I'm pushing this into a web service.
Base64 Encoding
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I tried going that route to have my database do the conversion but there were issues of data length limitations plus I felt as if there should be a pure datastage solution because I may not always be reading from a database. So I did some research and wrote a routine that I can us in my transformer. This gives me the flexibility changing out my data source and always being able to do base64 encoding.
If anyone else is wondering how to write a routine I used this link for the conversion methodology: http://en.wikipedia.org/wiki/Base64
If anyone else is wondering how to write a routine I used this link for the conversion methodology: http://en.wikipedia.org/wiki/Base64