Upload Image To Web Server Android, PHP, MYSQL PART 2/2

Filip Vujovic · 40K views · 2015 · 8:45

Open on YouTube

Web developmentSoftware (other)tutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they followed when building Android image upload to PHP/MySQL, usually when their own implementation fails and they ask for debugging help.

Recommended by 1 people across 1 different months, 2016 to 2018.

What it is

A short tutorial, part 2 of 2, showing how to upload an image from an Android app to a web server using Volley, PHP and MySQL. The presenter, Filip Vujovic, walks through the Android and server-side code, with the source on GitHub.

What people said

Recommends 0248881 · 2016-09 · Stack Overflow · on “HTTP POST request Issues (Android Volley)”

I followed this tutorial [this video] to send an image from my phone to the server, however the image never sends. In fact, the app doesn't even attempt to send the image (in logcat). All I see in the logcat is this: EDIT 2: I added this piece of code after "requestQueue(request)" and the image successfully sends to the server, but the image_name is not sent to the server for some reason. The file on the server is just ".jpg", no filename. int x=1;// retry count request.setRetryPolicy(new DefaultRetryPolicy(DefaultRetryPolicy.DEFAULT_TIMEOUT_MS * 48, x, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT)); } LOGCAT After EDIT 2: 09-06 20:59:04.530 4188-4194/com.example.android.projectlanguage W/art: Suspend

Cites MyNameIsAsker · 2016-05 · Stack Overflow · on “BitmapFactory.decodeFile() returns null”

Manifest.xml <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-feature android:name="android.hardware.camera2" android:required="true" /> <uses-feature android:name="android.hardware.camera" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Button OnClickListner button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); getFileUri(); i.putExtra(MediaStore.EXTRA_OUTPUT, file_uri); startActivityForResult(i,

Cites Shi Jie Tio · 2018-03 · Stack Overflow · on “Android Studio: Fail to upload image to mysql PHP”

I want to upload an image into mysql database (XAMPP) on Android Mobile Programming, but I've some problem with it. Based on [this video] , below are my edited code: import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.net.Uri; import android.os.Environment; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Base64; import android.widget.ImageView; import android.widget.TextView; import com.android.volley.AuthFailureError; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; im