Michael points in the right direction. You need write permission to / sdcard, which is known as external storage. Here's the documentation: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal You also need to add the WRITE_EXTERNAL_STORAGE permission to the app manifest.
On Jun 6, 3:35 am, RAJESH RAJARAM <[email protected]> wrote: > Convert the byte array data to the PDF Format. I'm getting the error in the > line of > > "FileOutputStream pdffos = new FileOutputStream(filepath);" > > My code is like this > > bytes = Base64.decode(temp.toString(),Base64.DEFAULT); > String filepath = "/sdcard/test.pdf"; > FileOutputStream pdffos = new FileOutputStream(filepath); > pdffos.write(bytes); > > Give me some Idea to get the PDF File formate from the byte array. > Note: I got the byte array from binary format. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

