Re: Saving images
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 14:29:35 GMT
Marcelo wrote:
However I have another problem. whenever I have a URL like this:
www.whatever.com/jni/images/im.gif
This is not a legal URL. You probably mean http://www.whatever.com/jni/images/im.gif or more exactly the constructed URL object: new URL("http://www.whatever.com/jni/images/im.gif")
Class java.net.URL has some handy methods (described in the API doc) for getting the parts: getProtocol(), getHost(), getPath(), ...
How Can I have the directory
www.whatever.com/jni/images
Choose what you need.
Don't break a fly on the wheel. String.index('/') and String.substring(...) will be sufficient.
without doing regex stuff?
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@').
- References:
- Saving images
- From: Marcelo
- Saving images
- Prev by Date: Re: How do they search ?
- Next by Date: Re: Under Linux, Call java from C++
- Previous by thread: Re: Saving images
- Next by thread: Retrieve Widnow Handle with Java
- Index(es):