I have a problem with the axlGetAttachment function.
This is what I do...
renameFile(a->data "MyTestFile.txt") - this is to get the file saved into the working folder
p_myFile = infile("MyTestFile.txt")
); end while
The problem is, when the attachement if fetched back from the database, it adds a NUL character at the end of the file.
In notepad++, it shows as a NUL and in Wordpad it shows as a blankspace
When the script above is run, it halts with an error:-
(("REMARKS_AR1" "testing this out,,"))
E- SYNTAX ERROR found at line 6 column 1 of file MyTestFile.txt
E- *Error* lineread/read: syntax error encountered in input
Any idea on how to handle this?
Vijay Anandh Vela