473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help needed urgently

hi frndz

I am new to j2me...and i m writing a code which will download an image file from a web server.. i am using tomcat 4.1 and i am keeping the image in the ROOT folder..but the main problem is with the url...i m giving it like this
http:\\127.0.0.1.\C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\ROOT\255.jpg,but its not working..can u plz tell me what's wrong???
Feb 16 '07 #1
1 1132
sicarie
4,677 Expert Mod 4TB
hi frndz

I am new to j2me...and i m writing a code which will download an image file from a web server.. i am using tomcat 4.1 and i am keeping the image in the ROOT folder..but the main problem is with the url...i m giving it like this
http:\\127.0.0.1.\C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\ROOT\255.jpg,but its not working..can u plz tell me what's wrong???
(Aside of the fact that your http: slashes are going in the wrong direction (should be http://) and the fact that you have a . after your last IP octet (it should not be .1))You are using Apache, and combining the url with the absolute file path.

Apache sets its root folder to be http://127.0.0.1/ . The absolute path(C:/Program Files/Apache/Tomcat/webapps) is not necessary, and is only for the localmachine, not for http service. Try it, I'm pretty sure one of these two will work:

http://127.0.0.1/255.jpg
http://127.0.0.1/ROOT/255.jpg (I will be very surprised if this is the one that works, the first one should be it)
Feb 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kamliesh Nadar | last post by:
Hi I am developing a software using VB.NET I am facing following problems - 1. Though I have placed the NotifyIcon control on the window service application, after starting the service I am...
15
by: Alfonso Morra | last post by:
Hi, I have some code from an example, that I want to retrofit into my project. The code from the example has the following line: SharedAppenderPtr myAppender( new...
1
by: Linesh Gajera | last post by:
Hi Guys i having the same problem with Strongly typed dataset, I have created a stronsetly typed dataset by draging table from Server explorer and now i have retreived xml from SQL server 2000...
0
by: Amit | last post by:
hi friends , I am stuck with a problem and need ur help. I have knowledge management application where i am using third party forums that needs login.I have username and password for forums...
4
by: xunitinmullik | last post by:
Hello ppl: I am facing a problem that I ahve never experienced before with the secured database. I created an MS Access 2000 application (.mdb) using MS Access 2002 and secured it using exactly...
5
by: el prinCipante | last post by:
I'm getting tired of the following error message. Compiler Error message : Error: Need explicit cast to convert from: float to: float * I am trying to use a routine from the Numerical Recipes...
1
by: pathakrajeev | last post by:
Hi I needed help urgently. Suppose I have file name like test12wehow.asp test11234r5wesow.asp,upppwenow.asp. one thing is common in all the files are "we". I want to read the file as...
1
by: janakivenk | last post by:
Hello, I am running Oracle 10g R2 in our office. I created the following procedure. It is suppose to access an xml file ( family.xml). The procedure is compiled and when I try to run it, i get the...
1
by: Robert Wells | last post by:
Gentlemen, We are looking for two IBM documents that are needed urgently for a project. They are titled "4680 Store Systems Serial I/O Channel Attachment Information" and "Serial I/O Product...
19
by: uhdam | last post by:
Hai... I need to have image as tooltip. Is it possible. If yes how. I dont want to use applet. When i scroll over the label in my frame the pop up containing the image should be displayed. How can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.