Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2008, 10:40 PM
Member
 
Join Date: Jan 2008
Posts: 2
barkster is on a distinguished road
Load URL that contains spaces?
I'm trying to load an image into my applet from php. I'm reading in parameters into the applet for the image path. It will work if the url doesn't contain any spaces but if it does it won't work. I've tried url encoding the name of the file first and even encoding the complete url but doesn't work either. How do I handle this? I would like to handle it in php before app gets it.


Code:
<param name = "imageURL" value = "<?php echo urlencode($imagepath); ?>" />
Original html
http://www.domain.com/Upload/Gallery...050%20copy.jpg

URL encoded above but does not load
http%3A%2F%2Fwww.domain.com%2FUpload%2FGallery%2F1 %2FTest%2FDSCF1050+copy.jpg
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load a lot of files? gabriel Java Servlet 1 08-07-2007 07:04 PM
Help with a word, if it is divided by spaces baltimore New To Java 1 08-07-2007 07:31 AM
how to load a html document boy22 Java Servlet 1 08-05-2007 05:12 AM
Help with load image trill New To Java 1 08-01-2007 08:16 AM
Reading file data that contains no spaces jdepue Advanced Java 1 08-01-2007 05:58 AM


All times are GMT +3. The time now is 10:35 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org