Solved

Sending an image from servlet to mobile phone

Posted on 2006-10-27
6
378 Views
Last Modified: 2011-09-20
Hi,

I am building a project that has this impementation:

- the user uses the mobile phone to take a picture.
-the user sends the picture to the server(tomcat)(first the user is authenticated)
- with the picture the user sends a friend's phone number.
- server insert the picture into database and send it also to the friend (phone number entered by user)
My question:
any idea how to send the picture from server to the phone.(code samples would be aprecciated)

Thanks
0
Comment
Question by:ArbenCelaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
JavaInTheMorning earned 63 total points
ID: 17828793
Easy:
Send an HTTPRequest (POST) with the bytes of the PNG image in the body. In the client - use the Image.createImage(byte[])  method to create your image.
0
 
LVL 3

Expert Comment

by:JavaInTheMorning
ID: 17828796
* Sorry... Response
0
 

Author Comment

by:ArbenCelaj
ID: 17835557
Thank you for your response.
The problem is: I  can not control the client. I want to send the image in any moble phone based on the phone number.
0
 
LVL 8

Assisted Solution

by:mxjijo
mxjijo earned 62 total points
ID: 17991905

No, you cannot "push" images to handsets (unless you have a client running on it).
I would recomment you to send an SMS with a URL of the message.
The user then clicks on the url to download the image.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question