Yes, Thank you JP... I got the solution...

//Creating new File in sdcard
byte[] bytes;
File createfile = new File("/sdcard/Androidrox/");
createfile.mkdirs();
File outputFile = new File(createfile, "Sample.pdf");
FileOutputStream fos = new FileOutputStream(outputFile);


//Writing into the PDF File
strByte = (xpp.getText().toString());
bytes = Base64.decode(strByte.toString(),Base64.DEFAULT);//Converting 
Base64 to byte
String filepath = "/sdcard/Androidrox/Sample.pdf";
OutputStream pdffos = new FileOutputStream(filepath);
pdffos.write(bytes);
pdffos.flush();
pdffos.close();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to