upload picture from android to a php server
I'm trying to upload a picture/imageview
to php server.
This server for uploading photos looks like this:
<h2>Your Photo(s)
<span style="font-size: 12px;">
<a href="javascript:toggleUpload('upload_pictures', 'upload_link')" id="upload_link">Add new photo!</a>
</span>
</h2>
<div id="upload_pictures" style="display: none;">
<div id="leftcol"><form action="//here is set the homepage"
method="post" enctype="multipart/form-data"
name="form" target="_self" id="form">
<input type="hidden" name="p" value="a" />
<input type="hidden" name="uid" value="100000894591455" />
The problem is that I开发者_Go百科 don't know how to upload a picture properly on this server-desgined this way. I don't know what codding method I should use or what to put in the post request.All my attempts of uploading a photo to that link returned a broken link!
If you would point me in the right direction I would really appreciate.Thanks
Http post request which send bytes of images along with appropriate headers and parameters can upload any file easily on a php server . go through http://getablogger.blogspot.com/2008/01/android-how-to-post-file-to-php-server.html
精彩评论