There is no need to "convert" it to a FileInputStream
, just get the reference to the InputStream
and use it (wrap it in a BufferedInputStream
if you want).
Like this :
AssetManager assManager = getApplicationContext().getAssets();
InputStream is = null;
try {
is = assManager.open("test.crt");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
InputStream caInput = new BufferedInputStream(is);