通过REST请求到达外部系统后,Base64编码的字符串已损坏

时间:2019-04-30 05:09:49

标签: rest base64

我的要求是通过REST REQUEST将base64编码的字符串发送到外部系统。但是在成功执行PATCH REST请求之后,数据在外部系统中进行了更新,但是内容似乎已损坏。 我的外部系统是Sales Cloud,我正在使用CLOB类型字段来存储base64字符串。我将在BIP中获得相同的base64字符串以将其显示为图像。我希望在发送时存储字符串。

This is my request in Postman:
{
    "OperatorComments_c":"iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAANSUlEQVR4Xu3dTYhV9RsH8J8UrbIsaFNYGlSLWmRKtQjKjSEY1UKhVbkqpDdXgRAqKNSqV1wIkUIQ6sKCWrmwCJdRQUKbqJBq0caKioKaP8/hP9P1ajOOc1/n+zkQLrr3nvN8nocvv3PPuWdWzMzMzDQbAQIEAgVWCMDAriuZAIFOQAAaBAIEYgUEYGzrFU6AgAA0AwQIxAoIwNjWK5wAAQFoBggQiBUQgLGtVzgBAgLQDBAgECsgAGNbr3ACBASgGSBAIFZAAMa2XuEECAhAM0CAQKyAAIxtvcIJEBCAZoAAgVgBARjbeoUTICAAzQABArECAjC29QonQEAAmgECBGIFBGBs6xVOgIAANAMECMQKCMDY1iucAAEBaAYIEIgVEICxrVc4AQIC0AwQIBArIABjW69wAgQEoBkgQCBWQADGtl7hBAgIQDNAgECsgACMbb3CCRAQgGaAAIFYAQEY23qFEyAgAM0AAQKxAgIwtvUKJ0BAAJoBAgRiBQRgbOsVToCAADQDBAjECgjA2NYrnAABAWgGCBCIFRCAsa1XOAECAtAMECAQKyAAY1uvcAIEBKAZIEAgVkAAxrZe4QQICEAzQIBArIAAjG29wgkQEIDLaAa2b9/ePvzww3bLLbe0U6dOLaPKlEJgOAICcDiuY/nUq666qv3666/dvj/99NN21113jeU47JTAtAgIwGnp1ALH+e2337a1a9fOvWpmZmaZVKYMAsMTEIDDsx3pJz///PPttdde6/b53HPPtVdffXWk+7czAtMoIACnsWt9x1yrv3Xr1rWzZ892/+ebb75pa9asWQaVKYHAcAUE4HB9h/7pFXobN25sn3/+ebev+++/v3300UdD368dEFgOAgJwirvYH35VysmTJ9sDDzwwxVU5dAKjExCA/7eu08haOX333XdzK6hbb7213XHHHe3BBx9sP/zwQ1u5cmVbv3796Lozz55qxVe3vcyu/OqlDz/8cHvvvfcm4vgcBIFpEIgPwGPHjrUDBw4s6rTxiSeeaNu2bWubN28eS48rrOu0t/6d3W666aYuDFetWjWWY7JTAtMoEBuAp0+fbk8//fSigq+/wffee2976qmn2uOPPz6y3tdpb61Mf/rpp3P2+dlnn7U777xzZMdhRwSWg0BsANYKalAXCyp4XnnllaF+91bBt3fv3gve3rJ79+62Z8+e5TCPaiAwUoG4AKwg2blzZzt06NA50PX93urVq7vv+erUtq6m/vbbb91FhS1btnThc91117U6Zf6vrU6NKwgHfRpa3+vVMfee8s4ew5VXXtnOnDkz8H2OdArtjMCYBOICcN++fe3FF188h/v1119vzzzzzEW3oFaOb731VnvnnXfOe0+FX63G6mbkpW4VeBV8813YeOGFF9pLL7201F15P4FIgbgAfOSRR9r7778/1+ytW7e2o0ePXlLzK6Bq1ffxxx+f9/66FeX48eOXtDKrixn1q44Kvtmbm/t3cPXVV3enw1XPoFecl4ThTQSmUCAuACuYegPrq6++arfddtuSWldBVUH4888/n/M5FUx1Cn0xFyfqlPzll1/ufsXx559/zns8tbqsVabgW1LbvJlAiwvAemDA7HdpN998c/v6668HMga1Uqvf4x4+fPi8EKyV4IVuTq7jqJVehd9/rfR6P6y+l6xV38UE6kCK8iEElrlAXACuWLFirqUVSrVCG+RW3w/WaWnvarBWahWCFVxffPFFd2pbr+u9ifm/jqFOdevzaoXpFx6D7JTPItDyVoB1A3Pvldxdu3a1/fv3nzMLJ06caNdee233bL26KnzjjTd2V4AvdqvVXIVW76n2ZZdd1v7+++95P+Kee+5ptSq9++67u4cZ1H9Wexer7nUEFi8QtwKs8KsQ7N0q3OpiSN1cPN9tLrPvufzyy7ufyPV/B1fBdzGrut591y84Kizr9Nk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AAzQABArECAjC29QonQEAAmgECBGIFBGBs6xVOgIAANAMECMQKCMDY1iucAAEBaAYIEIgVEICxrVc4AQIC0AwQIBArIABjW69wAgQEoBkgQCBWQADGtl7hBAgIQDNAgECsgACMbb3CCRAQgGaAAIFYAQEY23qFEyAgAM0AAQKxAgIwtvUKJ0BAAJoBAgRiBQRgbOsVToCAADQDBAjECgjA2NYrnAABAWgGCBCIFRCAsa1XOAECAtAMECAQKyAAY1uvcAIEBKAZIEAgVkAAxrZe4QQICEAzQIBArIAAjG29wgkQEIBmgACBWAEBGNt6hRMgIADNAAECsQICMLb1CidAQACaAQIEYgUEYGzrFU6AwP8AUiQYi8d6SuQAAAAASUVORK5CYII="
}

这是在字段中设置的数据:

�PNG


IHDR@�q-�k
IIDATx^��M�U����,hSXT�ZdJ�ʍ!�B�U�*�7W�*(ԪW\�B�Z���QAB���j�Ɗ���?��?��j3�s_��9.����|��/�sϹgV����4V���+��N@b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    ��h�o��>���v�-��S�N-�ʔB`8p8�c�ԫ������ݾ?���v�]w��8����i�����߶�k�νjfff�T���ó�'?�����^����sϵW_}u��3�( ��k}�\��u�ֵ�g�v��o�ik֬Y�)��p�p}���z7nl��y���}��GC߯Xp���~U�ɓ'�<0�U9t�������Z9}��ws+�[o���q���l?��C[�re[�~��3Ϟj�W��̮��?�p{��&���i��cǎ�,��'�h۶mk�7oK�+�봷���n��.W�Z5�c�S�(��O�nO?���������{o{ꩧ��?>���io�L��s���g��;�sd�aG��@l�
jP*x^y啡~�V��w���޲{��gϞ�0�j 0R��� ٹsg;t��9�����ի����Զ�����o�E�-[�t�s�u׵:e���N�+}Z���1����ÕW^�Μ93�}�t
����p߾}��_<����_o�<��E��V�o��V{�w�{O�_���f�nx|�]�x��K/���]y?�H��|�G���?��[���G�^R�+�j�����������㗴2�����
�ٛ��wp��Ww��UϠW����M�P .+�z뫯�j��vےZWAUA���?��9Lu
}1'���_�~����{<���U��[Rۼ�@��z`��wi7�|s���2�R���>|�����nN�㨕^����z?����U���@��!��@\�X�b��J�B�V��ii�j�Vj�\_|�Ewj[�뽉�Nu��j�����"��V�us��]�v�����3'N�h�^{m�l��*|�7vW�/v��\�V��e�]�����y?�{�i�*����V{��u/�����*��bH�\<�m.����˻���W�w1���}�/8*,���\?��A`)qXXO>�d;x��Rܖ��Z�կH��
oI��L`I�X��M�6��s�^�+������_�������?��]�����D������?�Vx6l8��H���G+����P"�D���.�*����k�頯����W ]p��r;�{>����c������O��*��2������
�q�E��R�7{��Jp]�O�
�OC�k�8��u����7�����`&���!X�W��r:<  �qIV�c���V��S3�6V@���Bp��vM�)��g�?���~����[��'���!��O@SB����6W�7�������8��ó]�'�Sb}�ѹ��CG�&��������ـ��~k��ڗ_~�����C�����שo=(��a<�pKvH�" �¾�N��v�ԩ��Ԙ�2l#@`�p���z�B���    ҵ�(20ZD`N@N�0�?<�~3\�   ������>��v�ƍ��_�_���`�H@NA3{��)h�C�8%��!�r��c��is��ķ���
AO����9ԉ�ۚXo�=fʚ�p'N@N\K�?���cv������3eU8\�! '��:�����k5h#@`qpq^���Ghyp�ĴƁL����f�j�#�V�\�~��)�ơ����@���o�g�}����o��9r���F���pa���|�z��8�n��v�ر�v�� �� �b{�\+�z������2���|��7��Q�2x8xӱ~�m�ڱc��afff��c�&Y@Nrw.��zW���-B@.�6���m˖-�n�� pah2����W8� + c[�p� @ V@ƶ^�@3@�@���m�� �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N��4�
���+�h����W8� + c[�p� @ V@ƶ^�@3@�@���m��    �f��X�z�  ��0��
'@@�b`l�N���R$��zJ�IEND�B`�

我用Google搜索找到要设置的标头,该标头可以让base64保持原样,但我在此上找不到任何内容。 如果我在该字段中从UI输入相同的base64数据,则它不会将其转换为任何内容。我不确定为什么会发生这种转换。

0 个答案:

没有答案