Hi, I got the answer how to download. There was a problem in writing into the file using BufferedOutputStream. Initially I read the file and written without doing bufOut.flush(). After doing this it worked fine.
Here is the code which i tried. if any one has good alternative or effective approach of downloading file please reply me.