question

ninog_p avatar image
0 Likes"
ninog_p asked

PICTURE SERVICE RESPONSE ERROR

Hello, run this code against the sandbox. Line 1 - 6 is OK. -> item has been verified. Now i create a AddItemCall and set the same pictures and get at line 11 a com.ebay.sdk.SdkException PICTURE SERVICE RESPONSE ERROR. What is wrong? (1) lstPictures.add("c:\\temp\\Schuhe.png"); (2) VerifyAddItemCall vapi = new VerifyAddItemCall(apiContext); (3) vapi.setSite(SiteCodeType.GERMANY); (4) vapi.setItem(item); (5) vapi.setPictureFiles(lstPictures.toArray(new String[0])); (6) vfees = vapi.verifyAddItem(); (7) AddItemCall api = new AddItemCall(apiContext); (8) api.setSite(SiteCodeType.GERMANY); (9) api.setItem(item); (10) api.setPictureFiles(lstPictures.toArray(new String[0])); (11) fees = api.addItem();
picture service response error
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
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered
Hi ninog_p, You will need to specify EPS server URL in ApiContext object as: `apiContext.setEpsServerUrl(sandboxEPSURL);` Please refer to this KB [Adding images to a listing using Java SDK AddItemCall wrapper][1] for the complete source code for the same. Best Regards, [1]: https://ebaydts.com/eBayKBDetails?KBid=1564
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.

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.