File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File read write problem

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have an audio file. I am maintaining that audio file in FileDescriptor. I want to write that file in sdcard or somewhere else.
I do not know how to copy that file using filedecriptor.

What I have done so far is ..


Where memo path is just a name of file.
Can ayonr give some idea.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are the docs on writing to the SD card: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
You will also need this permission in the manifest:


As far as reading the file when you have a FileDescriptor, several of the java.io classes take FileDescriptors as constructor parameters, including FileReader and FileInputStream.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic