Skip to content
Advertisement

Android : How to read file in bytes?

I am trying to get file content in bytes in Android application. I have get the file in SD card now want to get the selected file in bytes. I googled but no such success. Please help

Below is the code to get files with extension. Through this i get files and show in spinner. On file selection I want to get file in bytes.

JavaScript

Advertisement

Answer

here it’s a simple:

JavaScript

Add permission in manifest.xml:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement