byte[] pdfBinary ;
File file1 = new File("/mnt/sdcard/","metaphysics.pdf");
Log.d(TAG, "got a file reference");
Uri uri1 = Uri.fromFile(file1);
pdffilename = file1.getName();
Log.d(TAG, "got File name");
pdfBinary = readUriContent(uri1);
Log.d(TAG, "read from uri");
i was trying to get the thumbnail of a PDF file. To do this I have to store My PDF file in the RAM in form of binary. for small files it is good but for large files like 20MB it is showing java.lang.OutofMemoryError. any suggestions how can i do it.
thanks in advance.