I am sending image string from android to Php server using Base64 format. But at server end, full Image is not displaying. Only some upper part of Image is displaying. I used following code below
Bitmap bitmap2 = BitmapFactory.decodeFile(fileUri.getPath(), options);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap2.compress(Bitmap.CompressFormat.PNG, 90, stream);
byte [] byte_arr = stream.toByteArray();
String image_str = Base64.encodeToString(byte_arr, Base64.DEFAULT);
System.out.println("image_str >>>> " + image_str );
Here I am capturing photo then sending to server. I also reffer Image not encoded successfully but I didnt get solution.
Thank you.
Please help me.