Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot load file in System.Drawing.Bitmap with ampersand
Message
From
23/09/2013 16:20:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Cannot load file in System.Drawing.Bitmap with ampersand
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01583945
Message ID:
01583945
Views:
34
If I try to load a file in System.Drawing.Bitmap which contains an ampersand, this gives an error.

This is the code:
        Dim loImage As System.Drawing.Bitmap = Nothing

        ' Get a reference to the image
        loImage = New System.Drawing.Bitmap(lcFat + lcFileName)
The error is:

"Parameter is not valid."

I did not find any documentation on encoding the file name in here. Anyone knows something about it?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform