Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create binary file?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00598854
Message ID:
00605140
Views:
19
>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
Map
View

Click here to load this message in the networking platform