473,473 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

converting %20 to spaces

Hi
I am storing the attachments in files on the server.User can see all
the attachments & view any of them.
My application shows the attachment correctly for file which have no
spaces in their name.
But it doesnt works for file names with spaces.As the spaces are
converted to %20.It gives an error:No such file or directory.
How do I avoid converting of spaces to %20??
Also one more problem creeped up.
I am using <input type=file> method for uploading attachmnets..Then I
create a file on the server & copy the contents to that file.When I
display the attachments the text files & html files are displayed
correctly but the image files are distorted.
Do I need to escape sequences or do something else?
Please help
Jul 18 '05 #1
1 2470

<ke***********@yahoo.com> wrote in message
news:f0**************************@posting.google.c om...
Hi
I am storing the attachments in files on the server.User can see all
the attachments & view any of them.
My application shows the attachment correctly for file which have no
spaces in their name.
But it doesnt works for file names with spaces.As the spaces are
converted to %20.It gives an error:No such file or directory.
How do I avoid converting of spaces to %20??
Also one more problem creeped up.
I am using <input type=file> method for uploading attachmnets..Then I
create a file on the server & copy the contents to that file.When I
display the attachments the text files & html files are displayed
correctly but the image files are distorted.
Do I need to escape sequences or do something else?
Please help


Look at the quote() and unquote() functions in the urllib module.

John Roth
Jul 18 '05 #2

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

Similar topics

13
by: p s | last post by:
hi all i have a vb6 project, one of the functions is to read in a text file and place it into an array problem is, when people use the TAB key in the original file that is read, i just get the...
9
by: DanielESFA | last post by:
Hey :) Gonna hand in my programming project tomorrow, and I have to print all code of my KDevelop project. Kwrite, which is the editor in KDevelop, formats the code very nicely, with automatic...
20
by: Nate | last post by:
I am working on an Oakley parser and want to call an fopen function to read in the log file. I can use this to read the file, but only if I pass a "const char" variable to fopen. Since I would...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
4
by: gg9h0st | last post by:
i'm a newbie studying php. i was into array part on tutorial and it says i'll get an array having keys that from member variable's name by converting an object to array. i guessed "i can...
1
by: SenthilVel | last post by:
Hi All I am in the process of converting my 1.1 written CLR to 2.0 CLR in vs2005. In this process i am meeting all the abosolete and the warnings which are given up with building with the...
2
by: Curious Trigger | last post by:
Hello, if have an asp.net web page with a detailsview. This detailsview uses a sqldatasource connecting to a sql server 2005 database with a select statement simliar to this one: SELECT...
6
Robbie
by: Robbie | last post by:
Hi again all, here's something I'm stuck on... I'm making a function to convert a unicode character into the kind of code you need to put on a UTF-8 encoded web page (ampersand, hash, digits,...
2
by: pbd22 | last post by:
Hi. Could somebody provide me with a formula (or, better, a code example) for converting kilobytes to hours (or, time) from the server? Thanks.
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.