Efficient way to upload images from Android phone to WebView

RomanK

New member
Jul 22, 2024
1
0
1
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.
 
Welcome to Android Central! I moved this to the Software Development forum for more specific traffic. I also removed your attached ZIP file, because that's bound to raise some red flags with the mods here regardless of what it is.
 
  • Like
Reactions: RomanK

Latest posts

Trending Posts

Members online

Forum statistics

Threads
956,238
Messages
6,967,093
Members
3,163,489
Latest member
JonC