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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an image

Status
Not open for further replies.

bthale

Programmer
Oct 31, 2001
108
US
I have an application that accesses a map from another server. This server returns soemthing like http:/imageserver.com/map=^%7v*&*&^blj;j:j;j;usifuti(**(686

where "^%7v*&*&^blj;j:j;j;usifuti(**(686" is the image or actual map.

The client is https, so I get a security popup every time I show a map. How could I take tha image part and convert to an object without worrying about the "http:/imageserver.com/map=" part?
 
Are you sure the image is in the url? That seems a little silly, but stranger things have been done. If it is you could probably do something like this:

String gif=url.substring(imageserverurl.indexOf('=')+1));
reponse.setContentType("image/gif");
reponse.getOutputStream().print(gif);

Sean McEligot
 
Thanks, I'll try that. Yes it really is in the URL - Mapquest server to be exact.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top