Wrox Programmer Forums
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 23rd, 2008, 04:20 AM
Authorized User
Join Date: Dec 2006
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

   PER_NAME = '" & CheqOwnerComboBox.SelectedItem.ToString & "'",

   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
End Try


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image not displaying shoakat ASP.NET 2.0 Professional 2 June 22nd, 2007 10:02 AM
array displaying as image vinodkokane Visual C++ 1 April 23rd, 2007 12: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 07:44 AM
displaying an image from file stream into an image sanjeet ADO.NET 0 September 23rd, 2005 10:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.