im trying to download media files through my application for which i wrote a method which read bytes from the source file and return bytes array,
byte[] mediainfo = getMediaFile(String path);
but the problem is that when the file size will become greater than 5 or 6MB it will return outofMemory exception,please kindly give some idea how i will download big media file about 10 mb through my application, thanks.