Hi -
I'm new to power automate and xml so any help is greatly appreciated.
I have created a flow that creates a jpeg image file and stores it in SharePoint library. From there I am using the "Get file content using path" step to extract the base64 image value as a binary base64 string:
binary(base64ToString(body('Get_file_content_using_path')?['$content']))
Lastly, using the HTTP step I'm attempting to pass the binary image value to eBay's UploadSiteHostedPictures API. I receive a 200 Status code and eBay's photo editor "ImageMagick" attempts to edit it but the process fails because it is not in a "acceptable" format. Even though I have confirmed that the image is a .jpeg.
Why does it seem power automate is converting the .jpeg image to .JFIF? Does anyone know of a function or a header/query value that I should use to fix this issue?
Error Message
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<UploadSiteHostedPicturesResponse xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2022-07-15T02:13:31.498Z</Timestamp>\n <Ack>Failure</Ack>\n <Errors>\n <ShortMessage>Uploaded picture has an unsupported file format.</ShortMessage>\n <LongMessage>Picture Services only supports upload of JPEG, GIF, PNG, BMP, and TIFF image formats. Try again using a version of your picture saved in one of those formats.</LongMessage>\n <ErrorCode>2191454</ErrorCode>\n <SeverityCode>Error</SeverityCode>\n <ErrorParameters ParamID=\"0\"/>\n <ErrorClassification>RequestError</ErrorClassification>\n </Errors>\n <Version>0</Version>\n <Build>mediasvcs-5.0.20_20220615175658903</Build>\n <PictureSystemVersion>2</PictureSystemVersion>\n</UploadSiteHostedPicturesResponse>\n"
Here is the XML with the MIME_Boundary:
{
"uri": "https://api.ebay.com/ws/api.dll",
"method": "POST",
"headers": {
"X-EBAY-API-CALL-NAME": "UploadSiteHostedPictures",
"X-EBAY-API-SITEID": "0",
"X-EBAY-API-RESPONSE-ENCODING": "XML",
"X-EBAY-API-COMPATIBILITY-LEVEL": "967",
"X-EBAY-API-DETAIL-LEVEL": "0",
"Cache-Control": "no-cache",
"Content-Type": "multipart/form-data; boundary=MIME_boundary",
"X-EBAY-API-IAF-TOKEN": "REDACTED"
},
"body": "MIME_boundary\nContent-Disposition: form-data; name=\"XML Payload\"\n\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<UploadSiteHostedPicturesRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n</UploadSiteHostedPicturesRequest>\n\nMIME_boundary\nContent-Type: image/jpeg\nContent-Disposition: form-data; name=\"Image\"; filename=\"Cradil 1234 1.jpeg\"\n\n����\u0000\u0010JFIF\u0000\u0001\u0001\u0001\u0000`\u0000`\u0000\u0000��\u00002Processed By eBay with ImageMagick, z1.1.0. ||B2��\u0000C\u0000\b\u0006\u0006\u0007\u0006\u0005\b\u0007\u0007\u0007\t\t\b\n\f\u0014\r\f\u000b\u000b\f\u0019\u0012\u0013\u000f\u0014\u001d\u001a\u001f\u001e\u001d\u001a\u001c\u001c $.' \",#\u001c\u001c(7),01444\u001f'9=82<.342��\u0000C\u0001\t\t\t\f\u000b\f\u0018\r\r\u00182!\u001c!22222222222222222222222222222222222222222222222222��\u0000\u0011\b\u0003�\u0004\u0005\u0003\u0001\"\u0000\u0002\u0011\u0001\u0003\u0011\u0001��\u0000\u001b\u0000\u0000\u0002\u0003\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007��\u0000\u0019\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0003\u0004\u0005��\u0000\f\u0003\u0001\u0000\u0002\u0010\u0003\u0010\u0000\u0000\u0001��5�r�|����\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u001a\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0006 b`\u0000\u0000\u0000\u0000\u0014&�\u0000R��\n\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0000\u0000�\b\u0000�\u0000\u0002\u0000(\u0002\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\b\u0000�\b�\u0013���\\>��`\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\f\u0000\u0002�\u0000�Bbi�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\b\u0000�\u0000\u0000\u0000�\n\u0000\u0000\u0000\u0000\u0002\u0000(\u0002\u0000(\u0002\u0000\u0000\n\u0000�\u0002�/\u000f7��vI\u00000C\u0013\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000(\u0000\u0000�\u0000\u0002��\b\u0018\u0005J�!�d�€\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u00100\u0000@�\fL\u0000\u0001\u0003\u0010\r\u00104\u0000\u0005�\u001ew���\u0016\u00004\u0000�0\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0002�\u0000\u0000\u0000\u0000\u0018�\u0000FQ�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\u0000\u0002\u0006 \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\u0003���7\u0000\u0000\u0000\u0003\u0013\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001WEVZ�q:�\"'i�z�ʧT\\����s�E�êr����;G���W�<��ߜ������\u000fJy�ԻD�\u0000\u0000\u0000\u0006\u0001\u0019FBi�\u0000\u0000\t�\u0000\u0000\t� \u0018\b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000b�\u001c�䎈\u0000\u0000\u0000\u0000\u0000\u0000\u00004\u0003\u00104\f\u0000\u0000\u0000\u0000(���P�����%}\u001a���������K:�*GL�3�s��s�M\u0019H�;�{o\r�U�{y��\b��\u0010���ސ�Q��\u0000\u0000\t�\u0002q�\u00004\u0003@\u0000\u0000\u0000\u0000\u0000\u0000\r\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0002\u0001�\u0018��\f���\u000e;\r0\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001�\u001a\u0006&\u0000\u0000\u0001�o(��&J�Y=\u0019�J8B[�Q��e�;4\u0014�,q�t��\n�\u001b9�\u000b�x\u0002�-�����,�HCqk�����l�%\u0000\u0000\u0004�4\u0002�d\u0000\u0003@\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\t��h\u0018����\u0000\u0006�\u0000�\b^�y��0C\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001�\u001a\u0006�&\u00048�^:)�a��+%�6�g��W��;A�}�q\u000e�e�C�\u0003�w)�ѻ\u000eرFF?)���y�����s^�Lb\u000e�G.��Q��\u0000\u0002\u001a\u0000\u0005$�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000410@\u0000\r\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001x\u0010��\u0000��\u001dw\u0019\r\u0000�\f\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000h0s5�BʭLu]J��k�U�V�\u001c��>����2rߟ}�F�\u001d^~<�m���ӿ\u0006�Rh��\u0017��7\t����\u001bL\u0002G����FJ\u0000\u0000\b\u0000\u0000\u001cd\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�\u0018!�\u001a\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0002�\u0010p{�C�:�\u0000\u0000\u0000h\u0018�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�G\u001e��\u0015�\\d�FqlŲ[i��J�>�\u0017\\�������|�o\u001b���z��\r�շ\u0016Ĝ�#/��Z��s��t�Ԅ�ů\u001fP� ��\t�\u0000\u0000!�\u0000M0i�\u0000\t�%\u001a\u0000\u0018\u0002\u001ahb\u0001�\b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\f\u0000\u00041\u0003\u0010^\u000e\u0017#��,я`�\u0000\u0000\u0000\u0000b\u0001�`\u0000�\u0000\u0000\u0000\u0001�_8�\tE�mV�eה�̚��\n\nMIME_boundary"
}

Report
All responses (
Answers (