Author Topic: udt61 and encode()  (Read 5427 times)

slestak

  • Uber-Pro
  • ****
  • Posts: 77
udt61 and encode()
« on: November 11, 2010, 12:15:38 PM »
Seems like ENCODE() is not straightforward.  The manual does not match howto's from rockets site circa 2005.

https://u2tc.rocketsoftware.com/developerzone/techarticles/nkesic0604/

Is there a performant simple way to encode data base64?

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: udt61 and encode()
« Reply #1 on: November 11, 2010, 01:39:36 PM »
I see my error.  Even though ENCODE() is a function, the result of the function is not passed to the var in the statement.

X = ENCODE(...) does not not place output in X.  That makes no sense to me.  Does X get the value of STATUS()?

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: udt61 and encode()
« Reply #2 on: November 11, 2010, 01:46:04 PM »
Well, encoding base64 is working.  Still cannot get decoding base64.


This fails on udt61 for me.

X = 'SSBMSUtFIENPRkZFRQ=='
Y = ENCODE("Base64",2,X,1,OUT,1)
PRINT OUT
PRINT STATUS()

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: udt61 and encode()
« Reply #3 on: November 12, 2010, 05:09:19 PM »
Fails... how?
-Kevin
Accidents "happen"; success, however, is planned and executed.