Copy file from uri
In my app I have to copy a file selected by the user in my apps's folder. With a contenresolver I get an Inputstream of the uri, and I open a Fileoutputstream to my destination. After buffering both streams, I simply read each byte of the input and write it into the output. It works but the last round about 200 bytes get cut causing the file to get currupt. Jas anyone an idea what causes this? ps.: I'm executing this with an Asynctask.