URL - FileNotFoundException for image file in Android

前端 未结 6 1756
再見小時候
再見小時候 2020-12-17 04:04

I\'m trying to get a image from particular URL but it throwsFileNotFoundException. If I try to open the url from my browser, i can see the images. Please help.

6条回答
  •  青春惊慌失措
    2020-12-17 04:31

    In ...

    FileOutputStream f = new FileOutputStream(new File(root, FILENAME));
    

    Try replacing FILENAME with fileURL. Also, at which line is the exception thrown? That would help.

提交回复
热议问题