error when the image name has an space

Camila PiƱeiro <[email protected]> Fri, 1 Nov 2002 14:12:06 -0600
Newsgroups gmane.comp.java.enhydra.support
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_00BC_01C281B0.A8C44F20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

 Hi all!
I'm doing a web site where administrators can upload images. My problem =
is that when the images have an space in their name, I can upload them =
normally, but when the browser is loading the page where I show them the =
message "page not found:" <path I gave to the image (which I know is =
correct)> appears.=20

I'm saving the name of the images in a data base, and I'm uploading them =
to a carpet inside ...myApp/classes/myapp/presentation. When I show the =
images I'm using the method setSrc from the HTMLImageElement class to =
set the path to the image.

All works perfectly when the image name has no space. I don't know what =
to do. Could you help me?

 Camila

------=_NextPart_000_00BC_01C281B0.A8C44F20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;<SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US">Hi all!<?xml:namespace prefix =3D o =
ns =3D=20
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN>
<P class=3DMsoNormal><SPAN lang=3DEN-US style=3D"mso-ansi-language: =
EN-US">I&#8217;m doing a=20
web site where administrators can upload images. My problem is that when =
the=20
images have an space in their name, I can upload them normally, but when =
the=20
browser is loading the page where I show them the message &#8220;page =
not=20
found:&#8221;&nbsp;&lt;path I gave to the image (which I know is =
correct)&gt; appears.=20
<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN lang=3DEN-US style=3D"mso-ansi-language: =
EN-US">I&#8217;m saving=20
the name of the images in a data base, and I&#8217;m uploading them to a =
carpet inside=20
&#8230;..myApp/classes/myapp/presentation. When I show the images =
I&#8217;m using the method=20
setSrc from the HTMLImageElement class to set the path to the=20
image.<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN lang=3DEN-US style=3D"mso-ansi-language: =
EN-US">All works=20
perfectly when the image name has no space. I don&#8217;t know what to =
do. Could you=20
help me?</SPAN></P><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 12pt; =
mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; =
mso-fareast-language: ES; mso-bidi-language: AR-SA"><SPAN=20
style=3D"mso-spacerun: =
yes">&nbsp;</SPAN>Camila</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_00BC_01C281B0.A8C44F20--