IllegalArgumentException: column '_data' does not exist

前端 未结 4 1442
死守一世寂寞
死守一世寂寞 2020-12-13 19:25

In Nougat, this function is not working.

String path = getRealPathFromURI(this, getIntent().getParcelableExtra(Intent.EXTRA_STREAM));


4条回答
  •  星月不相逢
    2020-12-13 19:53

    @Redturbo I can't write a comment, I write here

    IOUtils.copyStream(inputStream, outputStream);
    

    TEMP_DIR_PATH - any your directory path, something like this

     File rootDataDir = context.getFilesDir();
     File copyFile = new File( rootDataDir + File.separator + fileName + ".jpg");
    

提交回复
热议问题