under when.ImageConvertor1.AfterResizeImage:
set.gloabl.totalBytes to length.get.global.base64String2;
set.global.totalChunks to ceiling: get.global.totalBytes/100;
this got totalChunk=59 by length of base64String=5952. why? should be 60?
tested the two solutions, all got ERROR: Bad arguments to < the operation <cannot accept the arguments:, [1], [[:/9j.....; seems that transfer the list instead of items of the list, maybe I used it wrong? the use block attached below.
the block attached in the post was from a working code which works great for take screenshot encode and transfer completed. don't why not works here, I mean take picture decoded...
displaied by Label that: totalChunk=59 by length of base64String=5952. its why post, as you also confirn it should be 60.
yes: take pictureToBase64-decode-resize-encode-send chunk. can you tell how to midify the second block? that input the base64String and sign the splitStringToChunk list to chunkList; and send 'START' to start the transfer. the global.chunkIndex to 0 or 1 both failed to send.
BTW. my test result: take pictureToBase64-decode-resize-encode-send chunk, all works well except the last step to send the chunk by chunk, it stucked at last chunk,
another thing is, the image size set: 100, and quality: 100, transfer never success;
size set: 100, and quality: 50; or size set: 50, and quality: 100, some times transfer good, why?