1

i am working on a android project where i have to send a base64 converted image string to server and retrive but in my case the url is like below

enter image description here

i am able to convert the string but the string is too big and i am unable to pass that big string into the url. Is there any way i can pass this string to url as parameter?

Divakar R
  • 773
  • 1
  • 8
  • 36
  • `but the string is too big`. How do you know? But indeed ithe query string will be too long. I suppose you should execute a POST request instead of a GET which you do now. Look at the server documentation. – greenapps Feb 05 '17 at 15:48
  • I am using AsyncTask and how can i make it a post method? – Divakar R Feb 05 '17 at 16:00
  • @DivakarLuffy I think that sending an Base64 encoded image to server needs to be send as a body parameters in a POST request. and yes as greenapps said, review server docs ! – Atef Hares Feb 05 '17 at 16:43
  • @Divakar you can send HttpPost request in asynctask as well, the same way as you are sending the GET request. – Priya Singhal Feb 05 '17 at 19:06
  • Is your problem solved?? @DivakarLuffy – Edukondalu Thaviti Jun 27 '17 at 07:21

0 Answers0