This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

storing/retrieving image to/from database problems

 
fadzizo abdullah
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
ujjwal soni
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


 
fadzizo abdullah
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • 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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic