2009-04-15 4 views

답변

2

그것은 가능하다 스트림으로 자원을 엽니 다 당신이 inputStream을 돌이 할 수있는 확신

String locator = "file:///SDCard"+fileName; 
FileConnection saveFile = (FileConnection)Connector.open(locator); 
saveFile.create(); 
OutputStream outputStream = saveFile.openOutputStream(); 

:

String fileName = "/myPath/myFile.mp3"; 
InputStream inputStream = getClass().getResourceAsStream(fileName); 

그런 다음 스트림을 읽고 파일에 쓰는 outputStream에 복사 한 다음 닫습니다.

관련 문제