굳이 Bitmap 압축을 시켜야 하나요?? 이미지파일, 동영상 파일을 그대로 복사하는것이라면 경로만 알고 있다면 간단합니다.
onActivityResult에서 파일 경로만 알수 있다면 아래와 같이 해보세요.
FileInputStream fis = new FileInputStream("복사할 소스 파일 full path");
FileOutputStream fos = new FileOutputStream("복사할 목적지 경로 fullpath");
int nReadCnt = 0;
byte[] buffer = new byte[4096];
while((nReadCnt = fis.read(buffer, 0, buffer.length))>0){
fos.write(buffer, 0, nReadCnt);
fos.flush();
}
fis.close();
fos.close();
아마 ACTION_PICK으로 미디어파일을 선택하였을경우 onActivityResult의 Intent data 파라미터안에 소스파일 정보가 URI로 담겨 있을 것입니다.
URI를 통해 파일 경로를 얻으려면 아래 링크를 참조하세요.
http://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore