question

infidealz avatar image
0 Likes"
infidealz asked

Upload Files Relating to a Return in post-order API

Hi all, I'm using [eBay post-order API]( http://developer.ebay.com/Devzone/post-order/post-order_v2_return-returnId_file_upload__post.html) to attach a image. But it not work. With 1616 error: ![Return array][1] [1]: /storage/temp/759-10-6-2015-3-38-01-pm.png In 'data' param of input. I put base64_encode of my image with this function: > base64_encode(file_get_contents([link-to-my-image])); So, my input the same as [ebay devzone]( http://developer.ebay.com/Devzone/post-order/post-order_v2_return-returnId_file_upload__post.html#Input) I don't know why this? Can someone help me, please? Big big thanks for you. (I'm using PHP)
ebay-apiphp-api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
perejaim-nqofopni avatar image
1 Like"
perejaim-nqofopni answered
for some odd reason you need to base64 the image file twice: base64_encode(base64_encode(file_get_contents([link-to-my-image])));
· 1
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wow, It's wonderful. :). I tried and it worked. I couldn't imagine. Thankyou so much!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.