Bad arguments of Enable/ the operation Enable cannot accept the argments
Hi all.
the example of KIO4-Base64's: Base64_Simple.aia tested works well.
I modofied it try to screenshot the screen and then Base64 it as attached got this error.
Any Enabled block is boolean, so you can only set to true or false
Also, why are you naming the screenshot twice, and after the screenshot has been taken ? IIRC, you need to set the filename BEFORE you take the screenshot.
And you already have the image (in the ASD), saved by the screenshot, why are you creating it again in the ASD, or is this aia simply for testing ?
Try this, made a few changes, so that you can work with the file (screenshot) in the ASD.
Loading the entire base64 string to a label can often causes the app to freeze, so I just captured the first 20 characters, so that I could see I was getting base64 back.
still the screenshot works, and the Image to Base64 button not work.
it had show a error too fast to be catched, seem text exceed kind of, so I made the Length = 10; got here.
Great!
it works.
how to show the all strings data (here I put length=100)? if it is too long, is it possible to reduce the image of the screen shoted ?
The blocks work well even with 400 size and 1-400 length.
one thing I'd like to make clear, is the image size reduce really reduced the encoded data length? because the TaifauScreenshot made image size reduced half with each next click ?
I added the resize blocks into this topic block, and put the screenshot in the same lblFileName, test result ask : first need to take picture, whats wrong?
You can test your hypothesis by comparing the length of the base64 string before and after resizing.
You appear to be following a different approach and using different extensions to the ones I proposed, making it more difficult for me to advise.
I suggest you simplify, run each part of your blocks code step by step, using Do It with companion to see the various outputs in each step, to find your issue.
I've tested to combine the two blocks above: #4 and #10, seems there is no reduce? the purpose is to take screenshot and reduce its size and encode it as strings.
I pressed two times of the ss button to take screenshots and to encode, both got about 8 pages of my screen, same length?