java.lang.IllegalArgumentException: File /storage/emulated/0/xxx/Image/MDA4Ni0xMzgyMzE2ODY3MQ.png contains a path separator
at android.app.ContextImpl.makeFilename(ContextImpl.java:2882)
at android.app.ContextImpl.openFileInput(ContextImpl.java:623)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:202)
at com.xxx.xxx.utils.ImageUtil.file2byte(ImageUtil.java:214)
at com.xxx.xxx.presenter.LeftPagePst$10.onStateChanged(LeftPagePst.java:467)
at
at android.os.Handler.handleCallback(Handler.java:891)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7470)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
2019-08-28 11:06:48.702 17113-17113/com.xxx.xxxI/Process: Sending signal. PID: 17113 SIG: 9
FileInputStream input = getContext().openFileInput(path);
替换成下面的方式即可
File file = new File(path);
FileInputStream input = new FileInputStream(file);