Android - java.io.FileNotFoundException

前端 未结 4 1861

when i was inserting the bitmap image to files directory, it showing file not found exception and it is showing Is a Directory.

Here is my code:

             


        
4条回答
  •  时光说笑
    2020-12-19 02:57

    You are opening the directory itself for writing. This does not work. You need to specify a file within the directory, e.g.:

    fos = new FileOutputStream(new File(mFolder, "myfile"));
    

提交回复
热议问题