Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 23rd, 2008, 05:20 AM
Authorized User
 
Join Date: Dec 2006
Location: Accra, , Ghana.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error At Displaying An Image

When i try to display an image i get the error:
"Invalid Parameter Used"
This happens at code section:

Dim im As Bitmap = New Bitmap(mem)

Below is the entire code


Try
   Connect()
   jesacmd = New SqlCommand("SELECT PER_SIGN FROM PER_INFO_SIGN WHERE
   PER_NAME = '" & CheqOwnerComboBox.SelectedItem.ToString & "'",
   jesacon)

   jesacon.Open()
   Dim imagedata() As Byte = CType(jesacmd.ExecuteScalar(), Byte())

   Dim mem As MemoryStream = New MemoryStream(imagedata)
   Dim im As Bitmap = New Bitmap(mem)
   DisplaySignPictureBox.Image = im

Catch ex As Exception
   MsgBox(ex.Message)
End Try
   jesacon.Close()

Thanks

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image not displaying shoakat ASP.NET 2.0 Professional 2 June 22nd, 2007 11:02 AM
array displaying as image vinodkokane Visual C++ 1 April 23rd, 2007 01:06 AM
Displaying a image in asp dhillon555 ASP.NET 1.0 and 1.1 Basics 0 February 18th, 2007 10:16 PM
Image displaying problem creative_eye VB Databases Basics 0 April 7th, 2006 08:44 AM
displaying an image from file stream into an image sanjeet ADO.NET 0 September 23rd, 2005 11:28 AM



All times are GMT -4. The time now is 03:16 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.