Android - java.io.FileNotFoundException

前端 未结 4 1884

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:55

    Use file.createNewFile() if you want to make a file and not a directory. You may also need to use mkDirs() if the path doesn't exist either.

提交回复
热议问题