question

InactiveAutoUser avatar image
0 Likes"
InactiveAutoUser asked

Gallery pictures not showing up

I've been struggling for full day now trying to get an image to show up in the gallery.

 

I'm using the .NET SDK (version 735) and Visual Studio.NET 2010.  

 

I started with the sample app that lists an item, and modified it a bit to add more details, prices, return policies, etc but I cannot get an image to show up in the gallery. I get an email that eBay has added the item successfully, but where the picture of the item should be, all I see is an icon of  a green camera.  I want to host the images myself.  When I click on a link in the email, I am sent to the sandbox and everything looks good.  I see the .GIF file I supply for PictureURL but I never see the .JPG file I specified for GalleryURL.

 

When I click "see other items" to see my other items, all I see is "No Photo" for everything.  

 

Here's a bit of the code I'm using:

 

 

          {

                PictureDetailsType picDetails = new PictureDetailsType();

                picDetails.GalleryType = GalleryTypeCodeType.Gallery;

                picDetails.GalleryDuration = "Days_7";

                picDetails.GalleryURL = "http://www.PantySalad.com/images/Become.com/" + strItemCode + ".jpg";

 

                StringCollection strcolPicDetails = new StringCollection();

                String[] strArr1 = new string[] { "http://www.PantySalad.com/images/Posters/" + strItemCode + ".gif" };

                strcolPicDetails.AddRange(strArr1);

                picDetails.PictureURL = strcolPicDetails;

 

                item.PictureDetails = picDetails;

            }

 

you can use "HK16" for strItemCode, so picDetails.GalleryURL would be http://www.PantySalad.com/images/Become.com/HK16.jpg

 

For a while, I hard-coded this URL for picDetails.GalleryURL but that didn't work either:

http://i16.ebayimg.com/01/c/03/c2/9d/d5_6.JPG

 

Can someone help me figure out why I don't see anything in the gallery?

 

trade-api-gallery-additem
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.

developer-support@ebay.com avatar image
0 Likes"
developer-support@ebay.com answered

Hey Roohbear,

The sandbox doesn't support Gallery Images, it will work in production.

Here is an extensive list of features that aren't supported in Sandbox.

https://ebaydts.com/eBayKBDetails?KBid=684

Best Regards,

eBay Developer Support

· 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.

AArgh. Thank you.

0 Likes 0 ·
easyelectronic avatar image
0 Likes"
easyelectronic answered
I tried above code in sandbox and production. I could not see gallery photo in both area. The others images are fine. Please help me to find sample code for gallery photo.,I tried above code in production and sandbox. I can not see gallery photo in both area. Please help me.??? Please post here a sample code which works for galley photo .
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.

devanathan.developersupport@ebay.com avatar image
0 Likes"
devanathan.developersupport@ebay.com answered
Hello easyelectronic, Here is a sample for AddFixedPriceItem API call using C# Title: C# Basic AddFixedPriceItem sample for UK Link: https://ebaydts.com/eBayKBDetails?KBid=1620 Here is another link that contains the code sample for uploading images from local system to eBay Picture Server Title: C#.NET code sample to Upload images from local system to EPS using eBayPictureService Link: https://ebaydts.com/eBayKBDetails?KBid=2196 You can upload the image to EPS and use that FullURL in item.PictureDetails.GalleryURL field. Best Regards, Devanathan Sampath, eBay Developer Support
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.