----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: senthilkumard Message 1 in Discussion I have a byte array which holds the image that is read from the database.I am trying to create a new image out of it and assign it to a picture box in the form. I am using the following lines of code. STEP1: byte[] imageFile = AgencyController.AgencyProfile.AgencyLogo.ImageDocument; STEP2: System.IO.MemoryStream stream = new System.IO.MemoryStream(imageFile, true); STEP3: stream.Write(imageFile, 0, imageFile.Length); STEP4: System.Drawing.Image image = System.Drawing.Image.FromStream( stream ); STEP5: picAgencyLogo.Image = image; I am getting an exception in step 4 saying invalid input. Can anyone help me in this. regards senthil kumar d ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDOTNET/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
