Binary to Base64 String

ATTENTION: This forum is no longer active. Please navigate to our new support site at
Viewing 2 posts (of 2 total)
User - Author
Post count: 1

Do we have any function to convert Binary to Base64 String so that the conversion can be done in the code itself?

Comments (2)

Aron Hoekstra's picture Aron Hoekstra
Post count: 2

We do have a Function Field for Format Conversion - and one of the options there is Binary to Base64. In the Conversion Source field, you'd put a reference to your Origin field that contains the binary (byte array) data.

If you need to do this in script, we don't have a convenient way to do this for VBScript. However, if you use C# you can use the ToBase64String() method. A simple example would look like this:

  1. object ScriptedField()<br />
  2. {<br />
  3. return<br />
  4. Convert.ToBase64String(Starfish.OriginData["FILEDATA"]);<br>
  5. } 

Let us know if you need anything else or if you need a VBScript version of this function.

Log in to post comments
sujay.kumar's picture sujay.kumar
User - Author
Post count: 1

Thanks Aron; we'll try this out.

Log in to post comments
Viewing 2 posts (of 2 total)

Forum Login

Login or sign up for our forums to connect to the user community.


You must log in to post.

Not a Member? Register.