• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to send image from Servlet to J2ME app and display it on the app?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Guys,

I created DB (EmployeeID, EmployeeName, EmployeePicLink), the last column contains the link of the image (D:\Employees Images\face5.png) as sample
I want to create servlet that gets the image and sends it to the mobile as response to mobile request
At mobile side i want to receive the images as stream and display them on list.

How I will do that?
 
Ranch Hand
Posts: 120
IntelliJ IDE Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mohammad Abu Hmead wrote:Dear Guys,

I created DB (EmployeeID, EmployeeName, EmployeePicLink), the last column contains the link of the image (D:\Employees Images\face5.png) as sample
I want to create servlet that gets the image and sends it to the mobile as response to mobile request
At mobile side i want to receive the images as stream and display them on list.

How I will do that?



Little coding for servlet



You would also need to implement an interface. Within the interface you should open a file that contains an image and saves it to the output stream that is provided. It also possible to generate message using JPEGImageEncoder. But you should not need it because you already have an JPG image.

reply
    Bookmark Topic Watch Topic
  • New Topic