repeat for each line k of bad_ base_64_encoded_string
   put char 1 to 72 of k after good_ base_64_encoded_string
end repeat


--- On Fri, 9/9/11, Martin Koob <[email protected]> wrote:

From: Martin Koob <[email protected]>
Subject: Removing linebreaks from base64encoded string
To: [email protected]
Date: Friday, September 9, 2011, 8:05 PM

I am trying to remove the line breaks from a base64 encoded string.   



In a livecode stack I tried
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

That had no effect.

If I tried,

replace return with "" in tEncodedtext

That did remove the linebreaks.

With LiveCode Server (on-rev 3.5 engine)
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

has no effect.

and

replace return with "" in tEncodedtext

also has no effect.

Is there another way to remove line breaks in this string?

Martin




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Removing-linebreaks-from-base64encoded-string-tp3803116p3803116.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to