• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Downlading Image file on MOBILE

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic