views:

49

answers:

2

How do I convert a byte array to a base64 encoded string using the BlackBerry plug-in for Eclipse?

A: 

The best source of information is from one of the following:

  1. Commons Apache Codec

  2. ostermiller.org/utils/Base64.html

mrjohn
Thanks - I have added the jar files from common and i get an error when I run the sumulator that they anot be found. I'm new to eclipse - Have I missed anything?
davy
I'd rather use the apache method but tried copying the code into a class - it has a few errors.
davy
you are right the apache method is best, removed the source code to avoid confusion. thanks davy
mrjohn
+2  A: 

Check out the BlackBerry JDE API documentation for net.rim.device.api.io.Base64OutputStream

Richard
This is exactly what I was looking for. Thanks
davy