SamsSocial (4).aia (104.6 KB)
The API will not work in this aia, as it has been removed in the variables. I can send python code the API is using if needed. When the app is loaded on editpicture screen, it calls the API as /api/v1/routeverify/get_chunk. When it receives that, it sets it to global base64, and keeps doing that until it gets HTML (tag doesn't exist). The textbox should have the data from the API in 5,000 character chunks as for whatever reason I cannot get more then 5,000 all joined together. For some reason the text box does not have numbers 1-10,000. It only has the first chunk. The block that isn't working is the set global base64 to join get global base64 and get response content. Eventally, I want the API to instead have base64 and it will show a image for a social media app (reason for all the rest of the code). I am switching from cloudDB to the API to remove some storage limits.
Please, show your relevant blocks...

This is where the join block is in the GotText built in funtion.
Do you mean to send an index number in your postText ?
Have you set the web url for the postText ?
oh, I understand what you mean about the index. Yes, it's because theres chunk1, chunk2, chunk3, ect.
So it seems like the problem is that text boxes can't have more than 5,000 chars inside. I set it to a label and it worked.
Not the case, just tested with 6000 words in a textbox without issue.
Weird, that is true, I tested it too. On my project, when I copied and pasted from the text box (or viewed), the text length was 5,000. I changed it to a label and enabled scrolling so I could see all of it, and it went above 5,000. I removed that code, so it won't be easy to test again.
Edit: I figured it out. One-line textboxes (without multiline in the designer tab) have a limit of 5,000 on Chrome OS. I never tested on anything else, as I do not have any other devices with me.
I don't recommend trying to set a label to a base64 value from an image, which can often have 50,000+ characters. This may/will bring AppInventor to its knees.
I know, I just had the textbox set to not be multiline, so it didn't work. I was just testing ways that it wasn't working. I got it working, another bug was +'s were spaces so that was an easy fix.
