I have Nexus 4 and it's giving me no problems. But when I tried my code on micromax canvas it threw an IOException "invalid arguments" while trying to save a file with an encoded filename.
I am using this line to convert the file name.
Base64.encodeToString(name.getBytes(),Base64.DEFAULT))
where name
is the filename (example:hello.jpg).
Basically I want to convert the filename so that no one can even search it in sd card.
I think the problem is that the FAT file system supports filename length up to 42 characters but it is producing longer file names. I have also tried URL safe and no padding instead of default in Base64.
I need to know some alternative solution.