Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / August 2004

Tip: Looking for answers? Try searching our database.

Invalid Parameter Used when creating Bitmap from File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Axel Reimann - 24 Aug 2004 09:32 GMT
Hi all!

I'm really freezed by this problem. I'm creating a Bitmap from a
Jpg-File on a network-share using the Bitmap-class. It really works
fine but on one server, i get an "Invalid Parameter Used"-Exception
when calling Bitmap b = new Bitmap(path_to_jpg).

Here's the code-sample:
...
FileInfo ImageInfo = (FileInfo)PicsInPath[SelectedImage];
  // PicsInPath is an ArrayList holding all the images in a
particular
  // directory
Bitmap b = new Bitmap(ImageInfo.FullName);   // CrashBoomBang
...

The FileInfo-object is correct, the responding FullName-property is
correct. The exception also ocurrs when using a hardcoded
string-parameter for the Bitmap-construcor Bitmap b = new
Bitmap(@"\\someshare\somepath\some.jpg");

Can anyone PLEASE HELP ME??
mphanke - 24 Aug 2004 10:53 GMT
Hi,

it sounds like the most reasonable thing for this is that you don't have
access privileges to the server. This was what my problem actually was
when I did something like this.

Ragards,

Martin

> Hi all!
>
[quoted text clipped - 18 lines]
>
> Can anyone PLEASE HELP ME??
Axel Reimann - 24 Aug 2004 13:20 GMT
Hi,

thanks for your response, but i'm sure that's not the reaseon because i've
admin-privileges on both the server and the machine where the share with the
pics is located!

Regards,

Axel

> Hi,
>
[quoted text clipped - 28 lines]
> >
> > Can anyone PLEASE HELP ME??

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.