Hi, this seems to be an ASP.NET based application that needs to serve images which are not present on the file system (i.e. the images are stored in an XML file which can not be served by IIS directly).
You will find the following two articles of interest:
• Hot .NET Tips - Use SQL Server Images in ASP.NET Pages -
Visual Studio Magazine - Hot .NET Tips - Use SQL Server Images in ASP.NET Pages, this article by Dino Esposito essentially outlines what you want to do, simply replace the code which extracts binary blobs from the database with your code to extract your images from the XML file.
• Image Generation Service for ASP.NET 1.1 -
http://msdn.microsoft.com/msdnmag/is...4/CuttingEdge/
Essentially you will need to create a new ASP.NET page (or better yet an http handler) which extracts one image at a time from your XML document, and then passes the raw image data back to the browser (you should not need to constructor a Bitmap object, the raw byte[] array should be enough, simply transmit that data to the client). Your current ASP.NET page which contains the gridview control will need to be modified to use the Image Control with the ImageUrl property set to point to your new page which will serve each image for you. Since this is an ASP.NET related programming probably you will perhaps have better luck asking this question on the ASP.NET Forums available at
Forums - ASP.NET Forums. This forum is designed for smart device applications developed in C# or VB.NET which run directly on the PDA device via the Compact Framework.
Hope this helps,