java.io.ioexception: open failed: einval (Invalid argument) when saving a image to external storage

后端 未结 2 1043
萌比男神i
萌比男神i 2020-12-29 06:11

This is my code:

private boolean writeToSD(Bitmap bm, String url) {
    if (canIWriteOnSD()) {
        File sd = Environment.getExternalStorageDirectory();
          


        
2条回答
  •  不思量自难忘°
    2020-12-29 06:35

    The string url contains illegal characters for a filename. You'll need to cleanup the filename by removing the illegal characters.

提交回复
热议问题