Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create binary file?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00598854
Message ID:
00605140
Vues:
22
>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
Fil
Voir

Click here to load this message in the networking platform