I'm trying to implement a function, which allows from android image gallery share image to my webview application and upload it to the server.
E.g. I'm browsing through my android image gallery, on a specific image I click "share" button, then in a "Share via" window I select my webview application, which opens a specific view with packages list, then I select a package and the image is uploaded to the server with the selected package's id.
What I've done so far is getting an image from intent and opening my web application's specific view (which shows packages list) through webview.
My question is what is the best way of transferring an image to my web application?
Currently I'm thinking of encoding image into base64 and transferring it via url parameter, e.g. webview.loadUrl("http://www.dummyurl.com/ImageUpload?image=0M8R4KGxGuEA...")
, but I guess it's not the best idea because of the url length limitations..