>This is the receiving code (winsock-dataArrival).
>-------------------------------------------------------------------
>LPARAMETERS bytestotal
>
>lcData = SPACE(bytestotal)
>
>WITH THIS.Object
> .GetData(@lcData, 8, bytestotal)
> MESSAGEBOX(STR(LEN(lcdata))+" "+STR(LEN(ALLTRIM(lcdata))))
> inic=AT("application/vfp",lcData)
>.
>.
>.
>---------------------------------------------------------------------
>
> Several packages arrive with the correct size of the package but full of chr(0). Alltrim leaves the variable in 1 only character.
>When I use Internet Explorer to bring "app" does correctly, therefore the error Is my code and not in the Web server side.
> The connection is TCP with winsock.ocx and works correctly with some files, but not with others. For that reason I believe that it can be a problem of some binary code and winsock.
>
>Thanks,
I am having the same type problem when I encounter chr(0) in a file. Did you ever find a fix?
Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only