aspose file tools*
The moose likes Java Micro Edition and the fly likes Image to .jpg file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Image to .jpg file" Watch "Image to .jpg file" New topic
Author

Image to .jpg file

Paul Dudek
Greenhorn

Joined: Jul 21, 2006
Posts: 8
Hi Guys,
I wonder if you can help.
I have created a mutable Image.
This is composed of a snaphot using the camera of my phone. (encoding=jpg) and a .png which is superimposed on it. This works fine. I can store in a record and recall for displaying using Image.createRGBImage
What I would like to do is create a viewable .jpg file from my Image.
I tried this using a FileConnection for displaying in the native Pictures folder and although a file with a .jpg extension appears in there, it can't be viewed. I wondered if this was to do with the fact that the original Image was created from .jpg and .png?
I would be grateful if anyone could help.

Many Thanks,

Paul.
 
Don't get me started about those stupid light bulbs.
 
subject: Image to .jpg file
 
Similar Threads
Image object to png Image format
Is there a way to buffer a targa(.tga) file into a bufferedimage/print a targa file directly?
Why did it have to be PNG
Javascript/HTML - parsing image files
Write image to a file