Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what library should i use for base64 encoding/decoding [closed]

Tags:

android

Iam using base64 encoding for authentication to contact a dot net server and for image decoding. what library should i include for this. iam bit confused here. can someone help me

like image 497
AD14 Avatar asked Dec 09 '22 08:12

AD14


1 Answers

Android has inbuilt library for Base64, check following link

http://developer.android.com/reference/android/util/Base64.html

It is available from API version 8. If your application supports lower than API 8 then you can use following library http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html

OR

you can use official Android Open Source code. http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/util/Base64.java

like image 90
Ketan Parmar Avatar answered Mar 15 '23 05:03

Ketan Parmar