Uploading audio, video or image files from Android to php server.
2012-04-17 13:19
666 查看
In one of the previous posts I have shown one method to upload
an image in android.
Here is another method to upload a media file like images,audio or video in android.
Here is the main java file that does the upload.
Here I am trying to open audio from the gallery.
However you can change it to image or video according to your need.
The code for upload will not change since we change only the code for opening the gallery.
We use only the path of the selected file whether it is image or video or audio to upload.
an image in android.
Here is another method to upload a media file like images,audio or video in android.
Here is the main java file that does the upload.
Here I am trying to open audio from the gallery.
However you can change it to image or video according to your need.
The code for upload will not change since we change only the code for opening the gallery.
We use only the path of the selected file whether it is image or video or audio to upload.
相关文章推荐
- Uploading audio, video or image files from Android to server
- How to transfer image file to server from android
- Copying an image from one server to another using PHP
- Android Video Playback----from Framework to Driver
- How to play videos in android from assets folder or raw folder?
- Convert video files from one format to another
- Import data from files to SQL Server(用BULK INSERT命令导入数据详解)
- How to import class from other package when building android image
- Unsaved documents cannot be cut or copied to the clipboard from the Miscellaneous Files project
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- PHP错误The server encountered an internal error or misconfiguration and was unable to complete your re
- Generate mp4 video with image files using Jcodec in Android
- Downloading files from a server to client, using ASP.Net, when file size is too big for MemoryStream using Generic Handlers (ashx)
- Howto Setup yum repositories to update or install package from ISO CDROM Image
- convert return char from sql server 2008 r2 or below version to c#
- Android privilege escalation to mediaserver from zero permissions (CVE-2014-7920 + CVE-2014-7921)
- How to view or edit pdf/image metadata from command line on Linux
- 【原】Android - could not read ok from ADB Server * failed to start daemon * error: cannot connect to d
- LINQ to SQL 异常:SQL Server does not handle comparison of NText, Text, Xml, or Image data types
- from Export image to TIF or TIFF file of selected