Android large video uploading to php server ,I read many answer in stackoverflow.
uploading video upto 50MB to the server
Android: OutOfMemoryError while uploadi
You shouldn't be setting a large byte[] to the entity. It's bound to run out of memory. You could use a FileEntity here.
http://developer.android.com/reference/org/apache/http/entity/FileEntity.html
Some related questions and links
Android send photo using HttpPost/HttpGet
Try this: Sending images using Http Post
If the OutOfMemory error is coming from the server, the quick fix would be to update your php.ini variables:
upload_max_filesize = 100M
(or whatever you feel comfortable with)
or if you are POSTing, then you'll also want to change
post_max_size = 100M