B4A Library Base64 encode/decode image library

Ganiadi

Active Member
Licensed User
Longtime User
hi, i tried to get image from other PC using VB and i could display the image again using the byte of array read from the image file, but when sent to b4a and it received the string completely, but when executing using Base64Con.DecodeToImage(cPackage) it raised error :

An error has occured in sub:main $ResumableSub_AStreams_NewDataResume(java line:722)
java.lang.NullPointerException:Attempt to invoke virtual method 'byte[] anywheresoftware.b4a.objects.StringUtils.DecodeBase64(java.lang.String)' on a null reference
Continue ?

Any advice, tks
 

marcos

Member
Licensed User
Longtime User


sorry for my english, did you solve it? I also have the same problem I printed the log on the txt file and it is correct, when I pass the data with poststring arrives cut to the service :-(. Someone can help me for days I can not understand the reason :-(
 

Carlos Muniz

Member
Licensed User
Longtime User
Hello Simpson:

Thanx for the library. Can you show me an example of converting a string into a picture and after saving it to an ImageView ?
( DecodeToImage (ImageStr As String) As Bitmap )
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…