Make sure not to initialize it in prefix mode.
Thanks, Indeed prefix mode! my initialize code
AStreams.InitializePrefix(sc.InputStream, False, sc.OutputStream, "AStreams")
but in b4a this code not this problem!
now b4i initialize code change AStreams.Initialize(sc.InputStream, sc.OutputStream, "AStreams") Solved it!