How to upload video to PHP SERver from Android
<p>Hi Guys i m using following code but getting error0 as response . Please help in following code as i m near to success.     </p>

<pre><code> public void video()
 {
    File file = new File(exsistingFileName);
    try {
        HttpClient client = new DefaultHttpClient();  
        String postURL = "http://10.0.0.27/sportscloud/devices/uploadBlogData.php";
        HttpPost post = new HttpPost(postURL); 
        FileBody bin = new FileBody(file);
        MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);  

        reqEntity.addPart("email", new StringBody("test1@nga.com", "text/plain", Charset.forName( "UTF-8")));
        reqEntity.addPart("gameId", new StringBody("1024", "text/plain", Charset.forName( "UTF-8")));
        reqEntity.addPart("source", new StringBody("phone", "text/plain", Charset.forName("UTF-8"))); 
        reqEntity.addPart("uploadfile",bin );
        post.setEntity(reqEntity);  
        HttpResponse response = client.execute(post);     

        HttpEntity resEntity = response.getEntity();  
        if (resEntity != null) {    
                   Log.i("RESPONSE",EntityUtils.toString(resEntity));
        }

    } catch (Exception e) {
        e.printStackTrace();
    }
</code></pre>

<p>}</p>
