Display Image in Imagebutton

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

    Display Image in Imagebutton

    Hi,

    I am developing a simple application.
    In that I have to bind Image to Imagebutton.
    Here the images are stored in database in the form of bytes.
    And also I have contained a Treeview. Images are added to treeview.
    My problem is how to get image from database and display that image in Imagebutton when we click on partcular node in Treeview.

    Can anyone Help me.

    Thanks in Advance
    Pavani
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Read bytes from database.
    Populate a MemoryStream object with those bytes.
    Create an instance of the Image/Bitmap object from the memory stream.

    Comment

    Working...