473,499 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Space in path not working with Images

Hello!

When loading a path with spaces to Image.ImageURL from an SQL database, the
picture is not shown.
The path in the Image becomes Xxxxxx%2520xxx and is not working. In another
application the path becomes Xxxxx%20xxxx and does work. The different
between these are that the working one has an relative path inside the web
site and the the not working web has absolute path to a disk in our network.
I have checked the incoming stream of the path from the database and it is
the same, only ASCII 32 for a space.

Well, the truth is I working with the beta version of VS.Net 2005, so it
might be a bug, but I broadcast this qustion anyway.

Any ideas (without: Don't use a beta version).
/Magnus

Nov 18 '05 #1
1 1698
Sounds like a Encode/Decode problem. My guess is that the URL which
looks like Xxxxx%20xxxx is being Encode resulting in Xxxxx%2520xxxx.
The encode value for the percent sign (%) is %25.

-KIRBY
--
Kirby Turner, MCSD, MCAD
www.whitepeaksoftware.com

On Fri, 3 Sep 2004 16:40:12 +0200, "Magnus Blomberg"
<ma*************@skanska.se> wrote:
Hello!

When loading a path with spaces to Image.ImageURL from an SQL database, the
picture is not shown.
The path in the Image becomes Xxxxxx%2520xxx and is not working. In another
application the path becomes Xxxxx%20xxxx and does work. The different
between these are that the working one has an relative path inside the web
site and the the not working web has absolute path to a disk in our network.
I have checked the incoming stream of the path from the database and it is
the same, only ASCII 32 for a space.

Well, the truth is I working with the beta version of VS.Net 2005, so it
might be a bug, but I broadcast this qustion anyway.

Any ideas (without: Don't use a beta version).
/Magnus


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4345
by: skullcap | last post by:
Is there any way using HTML 4.01 of wrapping text and other inline elements into an 'L' or 'C' shaped space in a table - i.e. telling the browser that a series of table cells which don't form a...
5
12333
by: Applebrown | last post by:
Hello, basically, I'm just learning intermediate CSS and trying to convert my old table webpage completely to CSS. Hoorah, right? Well, it's not quite going as planned. It's an extremely simple...
6
2764
by: tshad | last post by:
I have an ascx file I am using to include my logos and heading information for all my pages. It was working fine up until now. I decided to set up an admin folder inside of my main folder and...
19
10153
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
5
1766
by: Michael | last post by:
Hi, For a home project I'm working on, I'm trying to get access to images within the web path, but the images don't show and I thing its because of the paths. Here is the dir structure: wwwroot...
3
11314
by: gogaz | last post by:
Hi, I know query in Subject line "Could not find a part of the path" has been replied before lots of time, but mine is bit different. My web server is windows 2003 R2 with both .net framework...
9
1520
by: Pumkin | last post by:
Hello guys, I have a small problem with setting the absolute path of an image. Here is the scenario: I need to put the image in a text concat something like this: <asp:Label id = "lbl"...
0
927
by: Rama Jayapal | last post by:
hi am developing an application to upload images to gridview which i have completed ,now i need to create directories and subdirectories to upload the images according to their type i have written a...
1
1707
by: Greg99 | last post by:
Hello. I need to find the available space for a given path (could be a network path) with a quota applied, but when I use the following code, it gives me the available space on the entire drive. ...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.