how can i upload image file to the xmlfile in Asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • assabu
    New Member
    • Jan 2014
    • 1

    how can i upload image file to the xmlfile in Asp.net

    i want to upload images to the xml file and view in slide show but i can't any one who nows can help me
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I have never tried this myself but here are the steps that I would imagine would have to be done:
    1. Use an UploadControl to allow the user to select an image file and upload it to the server
    2. Do validation to ensure that it is an appropriate image type
    3. Retrieve the image uploaded to the server as a byte array
    4. Write that byte array into the XML file, in a node that is valid for the file (using the classes in the System.XML namespace to help with this process)

    Comment

    Working...