Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

MMAPI - how to adjust size of image in .getsnapshot

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic