i want convert a int64 string (for example "Bwt693756BjBJsJ87coat7JArS0=") to bytes. in c# we can use a method System.Convert.FromBase64String and what about b4ppc?
hmm...
i'm write a pop3client module for b4ppc.working with pop3 protocol good.
now i'm try to decode a MIME and save attachments from recived messages. but i can't...
it is a string,contain a base64 of file (jpg image)
Sub Globals
Dim arr(0) As byte
End Sub
Sub App_Start
form1.Show
b64.New1
End Sub
Sub bgo_click
FileOpen(c,AppPath&"\1.jpg",cRandom)
bin.New2(c,20127)
s=b64.Base64ToString(StrReplace(tb1.Text,CRLF,""))
arr()=bin.StringToBytes(s)
bin.WriteBytes(arr())
FileClose(c)
AppClose
End Sub
Probably because Base64ToString assumes that the Base 64 string is coded in UTF8. I'll do a quick mod to add byte array conversions to the library and post it in a couple of hourse or so.