>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement