我想我已经走到了尽头……我正在尝试使用 cUrl(在 php 中)从数据库中检索 Blob。流程类似于
PHP (cUrL) -> 'url request' -> Rest API -> Database -> Rest -> PHP 中的数组。
我已经看到了很多示例如何使用直接 SQL 查询来做到这一点,但在我正在做的事情中,情况并非如此。您可以在下面看到相关对象的 json 数据表示方式。
"id": "f8fd460f-49a3-4f8b-91f9-5de8200b79e3",
"insertedOn": "2012-12-01T18:57:17Z",
"updatedOn": "2012-12-01T18:57:17Z",
"identifier": "VirtuconAdapter@3238808399@2012-12-01T18:57:17.648+0000",
"messageId": "0000c62a-f5bc-4900-8b46-7de4164abf09",
"payloadSizeBytes": 0,
"payload": "Cgo8P3htbCB2ZXJzaW9uPSIxLjAiPgo8RG9jdW1lbnQ+CiAgPExpbmU+VGhlIFNreW5ldCBGdW5kaW5nIEJpbGwgaXMgcGFzc2VkLjwvTGluZT4KICA8TGluZT5UaGUgc3lzdGVtIGdvZXMgb24tbGluZSBBdWd1c3QgNHRoLCAxOTk3LjwvTGluZT4KICA8TGluZT5IdW1hbiBkZWNpc2lvbnMgYXJlIHJlbW92ZWQgZnJvbSBzdHJhdGVnaWMgZGVmZW5zZS48L0xpbmU+CiAgPExpbmU+U2t5bmV0IGJlZ2lucyB0byBsZWFybiBhdCBhIGdlb21ldHJpYyByYXRlLjwvTGluZT4KICA8TGluZT5JdCBiZWNvbWVzIHNlbGYtYXdhcmUgYXQgMjoxNCBhLm0uIEVhc3Rlcm4gdGltZSwgQXVndXN0IDI5dGguPC9MaW5lPgogIDxMaW5lPkluIGEgcGFuaWMsIHRoZXkgdHJ5IHRvIHB1bGwgdGhlIHBsdWcuPC9MaW5lPgo8L0RvY3VtZW50PgoK",
"metadata": {
"source": "CyberdyneEngineering",
"adapter_id": "VirtuconAdapter",
"messageType": "T1000",
"payloadIdentifier": "VirtuconAdapter@3238808399@2012-12-01T18:57:17.648+0000",
"timestamp": "@2012-12-01T18:57:17.648+0000",
"transactionRef": "REF1985300039",
"hubItinerary": "CyberdyneAdapter",
"destination": "VirtuconEngineering",
"messageuniqueid": "0000c62a-f5bc-4900-8b46-7de4164abf09",
"randomString": "@3238808399",
"adpnextmlemarkersequence": "24",
"documentTrackingId": "D0198556465",
"routingDestination": "client.VirtuconAdapter.receive"
}
所以现在的关键是将整个元数据数组(即 blob)放入 php.ini 文件中。希望我很好地解释了这个问题。
感谢您的寻找和帮助