IT Community - Software Programming, Web Development and Technical Support

How to show an image containing xml file in .net cf

This is a discussion on How to show an image containing xml file in .net cf within the Mobile Software Development forums, part of the Software Development category; Hi, I am creating a web application, in which I have to show the images from the xml file. Now ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 03:09 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question How to show an image containing xml file in .net cf

Hi, I am creating a web application, in which I have to show the images from the xml file.
Now I want to show the images according to the tags, means if user search for flower image then only tag<Flower Images> should display in the grid view control. Any sample code is welcome.
Thanks in advance............
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 03:11 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: How to show an image containing xml file in .net cf

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,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing the Image file thumbnail view in ListView control using VC++ 6.0 prabhat.singh C and C++ Programming 0 01-17-2008 10:53 PM
Preview Image before Uploading File to Server velhari HTML, CSS and Javascript Coding Techniques 1 11-12-2007 10:21 PM
Can you show a simple code showing file dependency in cache in asp.net ? oxygen ASP and ASP.NET Programming 1 07-26-2007 04:08 AM
Get Error -- 1814 "The specified resource name not found in the image file". In WM 5. theone Windows Mobile 0 07-25-2007 01:25 AM
How to convert a word document/text document/PDF file into an image file? kingmaker C# Programming 0 07-16-2007 11:23 PM


All times are GMT -7. The time now is 09:23 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0