Question by worldealshopper · Jan 24 at 04:36 PM · .NET.net sdkpicturespicture-additempictureurl reviseitempicture service response errorpictures self hostest removedpicture url uploadeps upload problemseps pictures
Upload pictures .NET SDK - Error: Attachment request file is missing
I am trying to upload images from my local drive to eBay using the .NET SDK, so I can later attach them to the AddFixedPriceItem call.
ApiContext context = new ApiContext(); context.ApiCredential.eBayToken = TOKEN_LIVE; context.SoapApiServerUrl = "https://api.ebay.com/wsapi"; context.EPSServerUrl = "https://api.ebay.com/ws/api.dll"; context.Site = SiteCodeType.UK; context.Version = "971"; var pictureService = new eBayPictureService(context); var ebayImagesURLs = pictureService.UpLoadPictureFiles(PhotoDisplayCodeType.SuperSize, localImages.ToArray());
The code above works intermittently and I often get the following exception:
eBay.Service.Core.Sdk.ApiException: Attachment request file is missing. At eBay.Service.EPS.eBayPictureService.UpLoadSiteHostedPicture(UploadSiteHostedPicturesRequestType request, String fileName)
Is anyone else experiencing this behaviour? How are you uploading pictures from your computer to eBay?
People who like this
2 Replies· Add your reply
Answer by worldealshopper · Feb 01 at 03:37 AM
All images are less than 100Kb
We upload between 2 and 12 images. If the number is close to 12 it is more likely to fail, but if we keep trying it eventually works.
Another error message we randomly get is the following:
eBay.Service.Core.Sdk.ApiException: 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. at eBay.Service.EPS.eBayPictureService.UpLoadSiteHostedPicture(UploadSiteHostedPicturesRequestType request, String fileName)
Again, after we try several times it ends up working.
I hope this information helps you to point me in the right direction.
People who like this
Identify auction poster 2 Answers