Re: [ADVANCED-DOTNET] Conversion Error

2007-01-05 Thread Barry Kelly
"Hevel, Shawn" <[EMAIL PROTECTED]> wrote: > I'm reading the file in out of my hard drive. I think run the > ConvertStringToByteArray which converts it to a Byte[]. I then try to > convert the Byte[] into the image. > > StreamReader sr = new StreamReader(outFilePathAndName); StreamReader is for

Re: [ADVANCED-DOTNET] Conversion Error

2007-01-05 Thread Eames, Andrew
: Friday, January 05, 2007 1:19 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [Spam:* SpamScore] Re: [ADVANCED-DOTNET] Conversion Error I'm reading the file in out of my hard drive. I think run the ConvertStringToByteArray which converts it to a Byte[]. I then try to convert the

Re: [ADVANCED-DOTNET] Conversion Error

2007-01-05 Thread Hevel, Shawn
Work Email: [EMAIL PROTECTED] Home Email: [EMAIL PROTECTED] -Original Message- From: Shawn Wildermuth [mailto:[EMAIL PROTECTED] Sent: Friday, January 05, 2007 12:48 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Conversion Error Is this byte array coming f

Re: [ADVANCED-DOTNET] Conversion Error

2007-01-05 Thread Shawn Wildermuth
Is this byte array coming from a database table? (e.g. an Image column)? Thanks,   Shawn Wildermuth Wildermuth Consulting Services, LLC http://adoguy.com C# MVP, MCSD.NET, Author and Speaker -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behal

Re: [ADVANCED-DOTNET] Conversion Error

2007-01-05 Thread Patrick Steele
According to the documentation [1], ArgumentException is thrown when: "The stream does not have a valid image format". [1] http://msdn2.microsoft.com/en-us/library/93z9ee4x(vs.80).aspx -- Patrick Steele http://weblogs.asp.net/psteele -Original Message- From: Discussion of advanced .NE