Hello dear community,
I have a small application that wraps a website for processing pictures. I should be able to select images and send them to the webview using a JavaScript bridge. However, I cannot upload more than 5 pictures from my phone; the web application crashes, probably because of an Out of Memory exception. I am converting each image to a Base64 string and then sending the converted string to the webview. Is there a better way to handle this?
I also asked this question on StackOverflow, just to get a second opinion. StackOverflow Post
Any recommendations on how to redesign this solution would be greatly appreciated.
I have a small application that wraps a website for processing pictures. I should be able to select images and send them to the webview using a JavaScript bridge. However, I cannot upload more than 5 pictures from my phone; the web application crashes, probably because of an Out of Memory exception. I am converting each image to a Base64 string and then sending the converted string to the webview. Is there a better way to handle this?
I also asked this question on StackOverflow, just to get a second opinion. StackOverflow Post
Any recommendations on how to redesign this solution would be greatly appreciated.