468,134 Members | 1,268 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,134 developers. It's quick & easy.

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 1508
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by skullcap | last post: by
6 posts views Thread by tshad | last post: by
5 posts views Thread by Michael | last post: by
3 posts views Thread by gogaz | last post: by
9 posts views Thread by Pumkin | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.