Solved

Sending an image from servlet to mobile phone

Posted on 2006-10-27
6
331 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now