Converting inputStream to FileInputStream?

前端 未结 3 1921
清歌不尽
清歌不尽 2021-01-13 05:14

I am in a problem - i need to read SecretKey from Android APK (e.g. key.keystore), for my app it has to be read as a FileInputStream, but from assets I am getting only input

3条回答
  •  别那么骄傲
    2021-01-13 05:53

    Why do you need a FileInputStream specifically? In general, you don't have to care about the underlying implementation of the InputStream, you just read from it. Maybe your implementation should be InputStream agnostic.

提交回复
热议问题