I have some VB code that was working with .jpg images fine before, but now is giving me errors. Nothing has seemingly changed prior to my troubles. so I thought maybe there was a permissions issue, but everything seems to be okay on that side. Here's the code
in question: Dim img1 As New Drawing.Bitmap(strImgPath1) Where strImgPath1 = "D:\Inetpub\wwwroot\UnitedFinancial\LeadCardImages\00000235\4082b.jpg" And the error I get is = "Invalid Parameter Used" The string path is the local path to the image i need. I actually
wanted to use a relative path, since the images reside in a subfolder of my application, but when I use that type of path i get an error saying the format is invalid. The aspnet user has full rights to this folder, and the images are not read only. Does anyone
have a better solution for instantiating an image object for a .jpg file, or know what other reasons may cause the invalid parameter used error???? THANKS!
> I actually wanted to use a relative path, since the images reside in a subfolder of my application that's where you might find Server.MapPath() coming in handy....
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
INWYK
Member
5 Points
1 Post
'Invalid Parameter Used' w/ Dim i As New Drawing.Bitmap(str)
Apr 16, 2004 11:16 AM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: 'Invalid Parameter Used' w/ Dim i As New Drawing.Bitmap(str)
Apr 29, 2004 07:04 AM|LINK
Jason Brown - MVP, IIS