Precisely Speaking
May 21, 2012, 06:46:30 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: udt61 and encode()  (Read 596 times)
slestak
Uber-Pro
****
Posts: 69



« 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?
Logged
slestak
Uber-Pro
****
Posts: 69



« 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()?
Logged
slestak
Uber-Pro
****
Posts: 69



« 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()
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #3 on: November 12, 2010, 05:09:19 PM »

Fails... how?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!