我正在尝试复制应用程序的功能并进一步开发它。
此应用程序生成一个带有PDF417条形码的文档,其中存储用户输入的表单数据。
为了让我知道如何安排用户在我的应用程序中输入的数据,我首先需要解码已经生成的代码。
我能读到的是:
{
host: 'localhost:8080',
connection: 'keep-alive',
'access-control-request-method': 'GET',
origin: 'http://localhost:440',
'user-agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36',
'access-control-request-headers': 'authorization,key',
accept: '*/*',
referer: 'http://localhost:440/vokal/'}
如何将此文本翻译成实际数据(英文)
我知道这可能是一个愚蠢的问题,但我甚至不知道从哪里开始。无论我从其他stackoverflow问题尝试过什么,只返回相同的字符串
PDF417 scan data:
String data:
DZ65Y6JmY0ykW0uuGGzWPVWQ== 000000000060000000000101102016120MQA5ADAAMQAyADIANgA0ADYAMAAwADIAMwA= UgBPADEANgBCAFAATwBTADgAMQAwADAAOQAzADkAMwAwADIAOABSAE8ATgAwADEA1000000012000000023NU000000400000025500004046600000005700000006800000100900000008A00000009B00084200C00000011D00001687E00000166FNU000000GNU000000RQB1AGcAZQBuAA== SQBuAGcAaQBuAGUAcgA= 5
PDF417 raw data:
Total elements: 1
Element #1 is of type text
Length = 684 {68, 90, 54, 53, 89, 54, 74, 109, 89, 48, 121, 107, 87, 48, 117, 117, 71, 71, 122, 87, 80, 86, 87, 81, 61, 61, 32, 32, 32, 32, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 54, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 49, 49, 48, 50, 48, 49, 54, 49, 50, 48, 77, 81, 65, 53, 65, 68, 65, 65, 77, 81, 65, 121, 65, 68, 73, 65, 78, 103, 65, 48, 65, 68, 89, 65, 77, 65, 65, 119, 65, 68, 73, 65, 77, 119, 65, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 85, 103, 66, 80, 65, 68, 69, 65, 78, 103, 66, 67, 65, 70, 65, 65, 84, 119, 66, 84, 65, 68, 103, 65, 77, 81, 65, 119, 65, 68, 65, 65, 79, 81, 65, 122, 65, 68, 107, 65, 77, 119, 65, 119, 65, 68, 73, 65, 79, 65, 66, 83, 65, 69, 56, 65, 84, 103, 65, 119, 65, 68, 69, 65, 49, 48, 48, 48, 48, 48, 48, 48, 49, 50, 48, 48, 48, 48, 48, 48, 48, 50, 51, 78, 85, 48, 48, 48, 48, 48, 48, 52, 48, 48, 48, 48, 48, 48, 50, 53, 53, 48, 48, 48, 48, 52, 48, 52, 54, 54, 48, 48, 48, 48, 48, 48, 48, 53, 55, 48, 48, 48, 48, 48, 48, 48, 54, 56, 48, 48, 48, 48, 48, 49, 48, 48, 57, 48, 48, 48, 48, 48, 48, 48, 56, 65, 48, 48, 48, 48, 48, 48, 48, 57, 66, 48, 48, 48, 56, 52, 50, 48, 48, 67, 48, 48, 48, 48, 48, 48, 49, 49, 68, 48, 48, 48, 48, 49, 54, 56, 55, 69, 48, 48, 48, 48, 48, 49, 54, 54, 70, 78, 85, 48, 48, 48, 48, 48, 48, 71, 78, 85, 48, 48, 48, 48, 48, 48, 82, 81, 66, 49, 65, 71, 99, 65, 90, 81, 66, 117, 65, 65, 61, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 83, 81, 66, 117, 65, 71, 99, 65, 97, 81, 66, 117, 65, 71, 85, 65, 99, 103, 65, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 53}
Text representation (UTF-8 decoded): DZ65Y6JmY0ykW0uuGGzWPVWQ== 000000000060000000000101102016120MQA5ADAAMQAyADIANgA0ADYAMAAwADIAMwA= UgBPADEANgBCAFAATwBTADgAMQAwADAAOQAzADkAMwAwADIAOABSAE8ATgAwADEA1000000012000000023NU000000400000025500004046600000005700000006800000100900000008A00000009B00084200C00000011D00001687E00000166FNU000000GNU000000RQB1AGcAZQBuAA== SQBuAGcAaQBuAGUAcgA= 5
PDF417 raw data merged:
{68, 90, 54, 53, 89, 54, 74, 109, 89, 48, 121, 107, 87, 48, 117, 117, 71, 71, 122, 87, 80, 86, 87, 81, 61, 61, 32, 32, 32, 32, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 54, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 48, 49, 49, 48, 50, 48, 49, 54, 49, 50, 48, 77, 81, 65, 53, 65, 68, 65, 65, 77, 81, 65, 121, 65, 68, 73, 65, 78, 103, 65, 48, 65, 68, 89, 65, 77, 65, 65, 119, 65, 68, 73, 65, 77, 119, 65, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 85, 103, 66, 80, 65, 68, 69, 65, 78, 103, 66, 67, 65, 70, 65, 65, 84, 119, 66, 84, 65, 68, 103, 65, 77, 81, 65, 119, 65, 68, 65, 65, 79, 81, 65, 122, 65, 68, 107, 65, 77, 119, 65, 119, 65, 68, 73, 65, 79, 65, 66, 83, 65, 69, 56, 65, 84, 103, 65, 119, 65, 68, 69, 65, 49, 48, 48, 48, 48, 48, 48, 48, 49, 50, 48, 48, 48, 48, 48, 48, 48, 50, 51, 78, 85, 48, 48, 48, 48, 48, 48, 52, 48, 48, 48, 48, 48, 48, 50, 53, 53, 48, 48, 48, 48, 52, 48, 52, 54, 54, 48, 48, 48, 48, 48, 48, 48, 53, 55, 48, 48, 48, 48, 48, 48, 48, 54, 56, 48, 48, 48, 48, 48, 49, 48, 48, 57, 48, 48, 48, 48, 48, 48, 48, 56, 65, 48, 48, 48, 48, 48, 48, 48, 57, 66, 48, 48, 48, 56, 52, 50, 48, 48, 67, 48, 48, 48, 48, 48, 48, 49, 49, 68, 48, 48, 48, 48, 49, 54, 56, 55, 69, 48, 48, 48, 48, 48, 49, 54, 54, 70, 78, 85, 48, 48, 48, 48, 48, 48, 71, 78, 85, 48, 48, 48, 48, 48, 48, 82, 81, 66, 49, 65, 71, 99, 65, 90, 81, 66, 117, 65, 65, 61, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 83, 81, 66, 117, 65, 71, 99, 65, 97, 81, 66, 117, 65, 71, 85, 65, 99, 103, 65, 61, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 53}
如果我试试这个:
DZ65Y6JmY0ykW0uuGGzWPVWQ== 000000000060000000000101102016120MQA5ADAAMQAyADIANgA0ADYAMAAwADIAMwA= UgBPADEANgBCAFAATwBTADgAMQAwADAAOQAzADkAMwAwADIAOABSAE8ATgAwADEA1000000012000000023NU000000400000025500004046600000005700000006800000100900000008A00000009B00084200C00000011D00001687E00000166FNU000000GNU000000RQB1AGcAZQBuAA== SQBuAGcAaQBuAGUAcgA= 5
我明白了:
byte[] data = Convert.FromBase64String(text);
string decodedString = Encoding.UTF8.GetString(data);