laptop and a wrench

Bug

Unable to grab the swatches from the Table of Contents because the Image URL is coming back as empty.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM043013
SubmittedMarch 3, 2009
Last ModifiedApril 2, 2025
Applies toNo Product Found
Version found9.3
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

It is still possible to grab the swatches from the table of content using MIME data still. The MIME data has to be converted to an image and that image will have to be saved onto the server machine in a location that the web server can find. Here is the code below: Dim sym1 As TocSymbol = Toc1.Nodes(0).Nodes(1).Nodes(0).Data Dim ms As <a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream = New <a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream(sym1.Image.MimeData.Bytes) Dim returnImage As System.Drawing.Image = System.Drawing.Image.FromStream(ms) returnImage.Save("<a href="file:C:/Inetpub/wwwroot/incidents/704846_TOCImages/images/1.gif" target="_blank">C:\Inetpub\wwwroot\incidents\704846_TOCImages\images\1.gif</a>") Image1.ImageUrl = "<a href="http://localhost/incidents/704846_TOCImages/images/1.gif" target="_blank">http://localhost/incidents/704846_TOCImages/images/1.gif</a>"

Steps to Reproduce

Bug ID: NIM043013

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options