| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: HTTP Post Receiving Binary Data |
| kevenbeach kbeach@beyondpos.com From: Maitland, FL USA Posts: 7 Member Since: 02/26/04 |
posted March 4, 2004 9:41 AM Im doing an http1->Post using BCB5, and the answer that should be comming back is: E 400 00000000000000000001INVALID TERM ID where the square is a hex 01 What I get in ovResult.OleStr is: ‚Å ´00 0000000000000000000±ÉNVAÌÉD ÔÅÒM ÉD The Post returns correct data when there are no non-printable characters (01, 02, 03, etc), but gets garbage when there are. Any ideas? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 4, 2004 11:27 AM Do you have a url that I could try? We use WININET.DLL which is the sam DLL IE uses, so if you have something that works with IE, it should work with our stuff. Also, it may be something about OleStr that is corrupting the data. I want to try in VB to see if it has the same problem. |
| kevenbeach kbeach@beyondpos.com From: Maitland, FL USA Posts: 7 Member Since: 02/26/04 |
posted March 4, 2004 3:04 PM Never mind... The data was convertible by zeroing out the high bit of each character. Apparently the data arrived as "even parity". Go figure. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 4, 2004 3:24 PM It would probably work if you received into a byte array instead of a string. I think what is happening is that the data is being converted into a multibyte string when it actually isn't one. The only problem is, I have no clue how to tell you how to use a Byte array in BCB. It's easy in VB though. |
| kevenbeach kbeach@beyondpos.com From: Maitland, FL USA Posts: 7 Member Since: 02/26/04 |
posted March 4, 2004 5:49 PM Well, I tried accessing the the TVarData structure directly for ovResult, but most of it is not accessible for an OleVariant. I also tried defining the result as a Variant and accessing the various elements directly. While accessible, the data was the same in every case. I believe that the data was in fact formated 7 bits with even parity, which made the highest order byte 1 in some cases but not all, when it should have been 0 in all cases. This one is almost as goofy as reverse byte orders. Thanks for the help! |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|