I have a jar file for which i need to pass file object. How can i pass resource or assets to that method as a file object?
How to convert assets or raw files in the project folders in to file objects ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is what I did:
Copy Your asset file into SDCard:
Then read your file by the path:
There you go. You have a copy of file object of your asset file. Hope this helps.