-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Add base64 built in #1960
Comments
Not sure if you're aware but websockets should support sending binary messages.
I generally prefer putting this stuff in Lua where possible, so would like to understand what performance expectations you have. |
Well, I guess there goes 3 hours of my life I'll never get back.
I'll admit I was trying to encode a 150MB file, but the limit before that happens is probably quite a bit lower, I'll do more testing when I have more time
That's understandable, even if it was in LUA, it would still be nice to have included |
Useful information to include:
textutils.base64.encode(stringofbinaryornonbinarydatahere)
, or like how python has it with thebase64
package havingb64encode
/b64decode
along withb32encode
/b32decode
under the samebase64
packagetextutils.urlEncode()
, and it does work for smaller strings of binary data, but it has a bug(?) where if the string is too big, it never yields so you get the dreaded 'Too long without yielding' error, even if that was fixed it would still be nice to have base64 built in.The text was updated successfully, but these errors were encountered: