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

Trending Posts

Members online

Forum statistics

Threads
955,148
Messages
6,963,901
Members
3,163,207
Latest member
drmikeyb