• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

storing/retrieving image to/from database problems

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys…

I’ve developed a midlet to store captured image from the phone’s camera into a database located on a server. At the server side, servlet is used to accept the captured image from the midlet and store in into the database.

The problem is, when I tried to retrieve the captured image and view it back on my midlet, half of the image became black except only small portion of the upper part of the image was ok.

Here are the code segments:


Midlet codes:


Servlet codes:


I hope you guys can help and guide me….thanks in advance
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You need to set below lines in your code and then try..


 
fadzizo abdullah
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ujjwal

1. why i need to change CLDC 1.1 to CLDC 1.0....?? im using CLDC 1.1....
2. do i need to delete any setRequestProperty() in order to put the suggested ones...??

thanks in advance...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic