Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URLEncoder/Decoder question

Status
Not open for further replies.

ob1kanobee

Programmer
Dec 27, 2002
47
US
Excuse my newbie question, but:

I have a word doc in a database and let's say the name is stored as "ABC%.1.2.%3 Document.doc"
When the page is loaded that has a tag referencing that file, it automatically renders the file to the user's temp folder, and I would like for it to encode the filename when it is copied to the user's temp folder so that I can decode it in the HREF link.
What is it that is rendering that file to the temp folder to allow the link to view it?
How can I copy that decoded filename from the database straight to the temp folder with the filename encoded so that I can use HREF=URLDecoder.decode(blahblahblah)

I guess my question is mostly what event is causing it to render the file and copy to the temp folder. I think!?!?!?
 
Use java.net.UrlEncoder and java.net.UrlDecoder classes.

Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top