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

Linux specific forum
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

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

Post 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]
Last edited by SkyManager on Sun Mar 04, 2007 5:32 pm, edited 1 time in total.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I guess you are not running 3.94

I run your code here in 3.94 without any problem.
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post 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....
Post Reply