472,989 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

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 1684
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.