Solved

Sending an image from servlet to mobile phone

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
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…

775 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