Even a single photo in today's usual resolution results in a string with at least 4-5 million characters after encoding. Ten images would therefore result in a text file with 50 million characters. AI2 cannot handle text files of this size.
It should work with smaller images (< 1MB).
ListView elements with a lenght of 5 million chars...
The user would probably have to scroll for several hours to get to the second item.
So, is there a way to shorten the base64 texts through some technique, and if so, later it can be expanded back?
Is it that list can't handle text with millions of characters? Because, it will not be visible in a front end to users. Users don't bother what is happening in background.
I AM NOT ABLE TO IMAGINE HOW THE COMPLEXITY OF THE APP IS INCREASING.
-- I already created an app to use image picker to get image and convert it into base64 on a button click.
-- Now, I realized that I have to reduce image size, so in the same button click, one more thing has to happen ie, Image size reduction + Base64 conversion.
-- So, when the button is clicked, 1) the image size should be reduced and saved. + 2) the size reduced image should be converted to base64. How can I do these 2 things on a single button click.
This is the example given in the page of Taifun's Image Extension. At the end of the displayImage procedure block, I put the KIO4base641 block. In that block, usually I put imagepicker.selection block, but here what is the block I have to place?
did you mean STEP1: to save size-reduced-image first and STEP2: then upload it again and export it as base64? Then I wish to automate the step2. Help me guys, I cannot cry loud.
Okay, right now, to deal this issue, I am going to make my app into 3 parts. 1) app A, 2) app B and 3) app C.
app A - to reduce the size of all images in one click.
app B - to upload all -size-reduced-images and convert them into basee64 in one click.
app C - to convert back the base64 data to image.
But, I will be happy if we can combine these 3 apps into one. Okay, right now, let it be the temporary solution.
You would need to test to see what pdf file sizes are like when you make a pdf with an image or images. I am not sure how the extension handles the images.
The extension works just fine. You need to pay particular attention to which blocks you use from the extension, depending on the android version of the device running the app. There are two types, those with a 10 in them, and those without a 10. Those blocks with a 10 target android versions of 10 and above, those without target android versions below 10. Each type will target different file locations.