Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MMAPI - how to adjust size of image in .getsnapshot

 
Zac Styris
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I'm using a nokia 3230 phone and when i use the getsnapshot method to capture pictures, the default picture size that i get would be 160*120. I really need a bigger size image since i'm using that image for image processing task, please help.

Thanks
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using //capture?encoding=jpeg&width=1280&height=960 or something similar? You should check the documentation for your device. It should tell you the maximun resolutions and which encodings are supported.
 
Zac Styris
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, i managed to enlrage the picture. but i'm having problems, transfering that image as an byte[] on to the PC using output streams and input streams.The transfer comes in to a half in the middle can someone please suggest a method.


thanks
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you sending the bytes to the server? Are you using a DataOutputStream on the client and a DataInputStream on the server?

Try checking the number of image bytes, the number of bytes sent, and the number of byte received by the server.

There is an example camera application at http://j2me.astrientlabs.com/appdetails.html?id=7 It sounds similar to what you are doing. It takes pictures and uploads them to fotomica.astrientlabs.com.

If you still have troubles, please post the code snippets where you are performing the upload for the client and server.

Thanks.

[ January 29, 2006: Message edited by: Rashid Mayes ]

*Removed the trailing period in the URL*
[ January 29, 2006: Message edited by: Rashid Mayes ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic