我有一台台式机,向一个网络服务器提供约2-3克双元数据。 我用<代码>制定了张贴单。 HttpSendRequest, 后者与案文相去甚远,但显然与本书不符。 从我的研究来看,我想到的是base64
。 在校正我的++版图中的数据,然后使用<编码>base64_decode in PHP储存这一数据。
我下载了数份c/c++文档,目的是在<条码>64<><>><>> >上编码,但要么只是不做笔工作,要么是符合PHP编码的编码。
我的问题是:
- Am I going about this the right way? Is there a better format to transport this data?
- Is anyone aware of a simple class or other c++ code that can help me encode this data in the proper format?
———————— 过去,我一直在这样做,现在比以往更加混淆不清。 这里的数据:
- Original binary data: http://pastebin.com/cPWjGN3q
- After base64 encoding in C++: http://pastebin.com/H4Jze96g
- Uploaded as encoded in php: http://pastebin.com/MRLZrsve
- Decoded in php: http://pastebin.com/TJs5WCNj
- The code I m using to POST the data: http://pastebin.com/L856rKmw.
我不 sure不 sure,但任何使这一 straight人伸出的协助,将受到大为的 appreciated。
-- UPDATE 2 -- The POST process changes the + characters in the encoded data to spaces. See the following:
C++的数据:。
As copied via FTP to server: http://pastebin.com/S0qjfreM
Is there a logical reason why the post process would change this character? I would prefer to understand and resolve the actual problem, but perhaps performing a string replace would be sufficient to finally move past this problem?