Re: Base64 encoding
Posted in 2012
You should be able to take any basic Base64 encoder function in C or Java and install it as a UDR in the engine then call it from SPL. Not particularly difficult. There are a couple of examples of simple UDRs on the IBM Developer site that will give you the tools you need. Do a search. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Tue, Mar 13, 2012 at 5:35 PM, Sean Baker <SBaker@moneymailer.com> wrote: > Hello all. > > I'm running IDS 11.50.FC6. > > I have a situation where it would be very useful to Base64 encode a string > to store in the database. Ideally, I would like to do this with SPL, but > an external UDR would be OK too, but definitely something that could be > used within an SPL stored procedure. > > Basically I'm looking for something that could encode an arbitrary string > (doesn't have to be Base64) that would be web-safe. > > Does anyone know of an existing UDR that would do this? Or is there some > internal function that would do it? > > Thanks, > > Sean. > _______________________________________________ > Informix-list mailing list > Informix-list@iiug.org > http://www.iiug.org/mailman/listinfo/informix-list >