Page 1 of 1

Error: Base64Decoder is not a function, an arra...[SOVLED]

Posted: Thu Feb 15, 2007 3:32 am
by SkyManager
When I test the following codes in PB3.94 Linux, it always gives me the following error

Code: Select all

Base64Decoder is not a function, an array or a linked list
However, the 3.94 manual is clearly saying that the function is there.

Code: Select all

src.s   = "testing1,testing2,testing1,testing2,testing1,testing2"
Debug src
srcLen  = Len(src)
*srcMem = AllocateMemory(srcLen + 1)
*destMem= AllocateMemory(srcLen + 100)
PokeS(*srcMem, src)
Base64Encoder(*srcMem, srcLen, *destMem, srcLen+100)
src = Trim(PeekS(*destMem))
Debug src
PokeS(*srcMem, src)
Base64Decoder(*srcMem, srcLen, *destMem, srcLen+100)
src = Trim(PeekS(*destMem))
Debug src
FreeMemory(*srcMem)
FreeMemory(*destMem)
End
Pls help - I cannot find out what is wrong :?: [/code]

Posted: Thu Feb 15, 2007 3:50 am
by ricardo
I guess you are not running 3.94

I run your code here in 3.94 without any problem.

Posted: Thu Feb 15, 2007 10:16 am
by walker
Have a look at:

http://www.purebasic.fr/english/viewtop ... e64encoder

it is NOT working on 3.94.. but well working since 4.00 beta 1 (this was reported back in 2005 :shock: )

may a search could answer your questions....