• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downlading Image file on MOBILE

 
Parth Mankad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody

I have windows 2000 server and Tomcat 4.0.1 installed on it and i have a folder called test in tomcat in which i have a image file and a jsp file in which i have a button called Download file.it is a gif file.what i want is that when someone access the jsp page through there MOBILE and clicks on the download file button then the image should be saved on the MOBILE phone.how can i do this.
plz help

parth
 
Debojit Nag
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi man,
I don't have the idea whether JSP can do this. But if u go for WML, your purpose will sure be served.

Debojit
 
Parth Mankad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello debojit

i have no idea of using WML.can u plz help me out with it.

thanx
parth
 
Debojit Nag
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Parth
A very good reference is http://www.w3schools.com/wap/ for writing a WML file. Plz go through this. Make a *.wml file. Put this file and all the image files *.jpg etc.into a place where it can be accessed via an HTTP server. The scheme is such that:

1.From the target phone, open the Web browser. Hit the URL pointing to the *.wml. Click on the �Download� link to download the app to your phone.
2.The phone may ask some questions about whether you want to download the images, etc. Say yes to all.

Example: (Simple one)

<wml>
<card id='download' title=�MyApp�>
<p>Download buddypix:</p>
<p><a href='MyApp.jpg'>Download</a></p>
</card>
</wml>

Hpoe this might help u. let me know the result.

Debojit
 
Tamer Badr
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will use an emulator or you want to do it with a real mobile phone?
It's easy to do it with an emulator, it's the way I do to simulate servers and their data for development and testing before using the real sources at the web.
For real mobile phones you can connect using your carrier Internet services to the server URL and download the image.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic