Dear Support Team,
On the code below, I am attempting to load 400MB jp2 image file. There is no error fired but the image does not load instead the area on the page for displaying the image remains busy. Can you give me a solution accompanied with a sample code?
LayerOverlay images = Map1.CustomOverlays["Image"] as LayerOverlay;
images.Layers.Clear();
String domain ="<a href="E://">E://</a>"+"Resources/Map/Image/new/";
try
{
Jpeg2000RasterLayer reader= new Jpeg2000RasterLayer(domain + "958695101_201302140800046.jp2");
reader.Open();
images.IsVisible = true;
images.ServerCache = new ServerCache(domain + "/Cache/");
images.Layers.Clear();
images.Layers.Add(reader);
images.Redraw();
Map1.CurrentExtent = reader.GetBoundingBox();
}
catch (Exception handler)
{
ReportError(handler);
}