convert Image to base64 string java android Code Is working Code Uri selectedImage = data.getData(); String[] filePathColumn = {MediaStore.Images.Media. DATA }; Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null , null , null ); cursor.moveToFirst(); int columnIndex = cursor.getColumnIndex(filePathColumn[ 0 ]); String imgDecodableString = cursor.getString(columnIndex); cursor.close(); File imgFile = new File(imgDecodableString); Bitmap bm = BitmapFactory. decodeFile (imgFile.getAbsolutePath()); policeform = Base64. encodeToString (getBytesFromBitmap(bm), Base64. NO_WRAP ); String policeform1 = policeform ;
Posts
- Get link
- X
- Other Apps
convert pdf to base64 string java Android Code is working code Uri uri = data.getData(); String uriString = uri.toString(); File myFile = new File(uriString); String path = myFile.getAbsolutePath(); String displayName = null ; if (uriString.startsWith( "content://" )) { Cursor cursor = null ; try { cursor = this .getContentResolver().query(uri, null , null , null , null ); if (cursor != null && cursor.moveToFirst()) { displayName = cursor.getString(cursor.getColumnIndex(OpenableColumns. DISPLAY_NAME )); inputStream = getContentResolver().openInputStream(uri); //You can get an inputStream using any IO API byte [] bytes; byte [] buffer = new byte [ 8192 ]; int bytesRead; ByteArrayOutputStream output = new ByteArrayOutputStream(); try { while ((bytesRead = inputStream .read(buffer)) != - 1 ) { output.write(buffe...
- Get link
- X
- Other Apps
How To Bypass Android Pattern Lock Without Losing Data? All of us using Smartphones today mostly have a lock device on our devices. This lock system is basically to protect our personal data from getting leaked or visible to other people. Also, in a case where your phone is stolen or lost, locks always help in protecting your phones . Now with the constant usage of phones and other accounts where passwords are needed, we at times forget the password that we have applied to lock our phones. This thing has become very common lately. In a hurry, when we want to open our phones, we forget the lock we have set. How to unlock android phone pattern lock without losing data is most trending this days. People search new ways to remove pattern lock without losing data. Do you know that nowadays, Android has become one of the most commonly used OS which everyone is using. The Android OS is provided by Google and recently, there was an article which gave details on how t...
- Get link
- X
- Other Apps
Other Android Phone Codes Unlock Secret Codes Functioning *#0*# 1. Galaxy S3 service menu. ##7764726 1. Motorola DROID hidden service menu. ##7764726 2. The default SPC password is six zeroes(000000). 1809#*990# 1. LG Optimus 2x hidden service menu. 1809#*990# 2. When prompted for a code enter six zeroes(000000). 3845#*920# 1. Lg Optimus 3D hidden service menu. 3845#*920# 2. When prompted for a code enter six zeroes(000000).
- Get link
- X
- Other Apps
PDA and Phone Codes Secret Codes Functioning *#*#7262626#*#* 1. Field test. *#06# 1. IMEI number. *#*#8351#*#* 1. Enables voice dialing logging mode. *#*#8350#*#* 1. Disables voice dialing logging mode. **05***# 1. Execute from Emergency dial screeen to unlock PUK code. *#301279# 1. HSDPA HSUPA control menu. *#7465625# 1. View phone lock status.
- Get link
- X
- Other Apps
Factory Tests Secret Android Codes Secret Codes Functioning *#*#0283#*#* 1. Packet Loop-back test. *#*#0*#*#* 1. LCD test. *#*#0673#*#* 1. Audio/Melody test. *#*#0289#*#* 1. Audio/Melody test. *#*#0842#*#* 1. Vibration test and Back Light test Device test. *#*#2663#*#* 1. Displays Touch screen version. *#*#2664#*#* 1. Touch-Screen test. *#*#0588#*#* 1. Proximity sensor test. *#*#3264#*#* 1. RAM version. *#0782# 1. Real time clock test. *#0589# 1. Light sensor test. *#7353# 1. Quick test menu.
- Get link
- X
- Other Apps
Firmware Version Information Secret Codes Functioning *#*#1111#*#* 1. Let you know about FTA SW Version. *#*#2222#*#* 1. FTA Hardware Version. *#*#4986*2650468#*#* 1. Firmware Info PDA, Phone, H/W, RFCallDate. *#*#1234#*#* 1. PDA and Phone firmware info. *#2263# 1. RF band selection *#9090# 1. Diagnostic configuration. *#7284# 1. USB 12C mode control. *#872564# 1. USB logging control. *#745# 1. RIL dump menu. *#746# 1. Debug dump menu. *#9900# 1. System dump mode. *#*#44336#*#* 1. Shows Build time changelist number. *#*#44336#*#* 2. PDA, Phone, CSC, Build Time, ChangeList number. *#03# 1. NAND flash serial number. *#3214789# 1. GCF mode status.