GetLineFromArea works on every second line
Aldevinas Katkus
4-9-21
Operating system: Windows
I have found a function GetLineFromArea() in the Paysera payment gateway code and tried to use it to get first lines of the file
which begins with:
-----------------------------319058603621414682042947460147
Content-Disposition: form-data; name="uploaded_file"; filename="hw_presta.png"
Content-Type: image/png


‰PNG
........
and I can see the follwing code returns every second row as an empty one.

fname = GetLineFromArea(filearea,0);
LogText(0,"line0=" & fname);
fname = GetLineFromArea(filearea,l);

LogText(0,"line1=" & fname);
fname = GetLineFromArea(filearea,2);
LogText(0,"line2=" & fname);
fname = GetLineFromArea(filearea,3);
LogText(0,"line3=" & fname);

Result:
2021-04-09 09:34:10 /THREAD(26) line0=-----------------------------319058603621414682042947460147


2021-04-09 09:34:10 /THREAD(26) line1=
2021-04-09 09:34:10 /THREAD(26) line2=Content-Type: image/png

2021-04-09 09:34:10 /THREAD(26) line3=

Is this a bug or feature?
I tested on Windows. File lines were separated by CRLF.
Dejan R.
4-15-21
Hi Aldevinas.

Thank you for the clear explanation. HW development department will take a look and we will get back to you.

Regards
Dejan R.
4-15-21
Hi Aldevinas.

According to HW developer it is not a bug.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024