• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

storing/retrieving image to/from database problems

 
Greenhorn
Posts: 23
  • 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
 
Ranch Hand
Posts: 405
  • 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
  • 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...
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!