Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image to .jpg file  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

Let's go to the waterfront with this tiny ad:
ScroogeXHTML 7.2 - RTF to HTML5 / XHTML converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!