URGENT: how to save Image to JPEG Format?
Creating a file makes use of FileConncetion class of jsr 75 and OutputStream Class of MIDP.
Is there any way to create a jpeg file from the information from an image created from MIDP Image.createImage(...) methods?
Urgent, pls help..
Step 1: understand the jpeg formet (I don't)
Step 2: manually write the bytes into a file yourself ..
And by file I mean RMS.
You wont be able to write the file to the phones gallery as that would be escaping the java sandbox ..
Which begs the question: why bother ?
Though I suppose if you are creating a picture taking application, this would be the only way to save the pictures, and jpeg's might be the best compression.
You would have to manually decode them again when you load them too.
jpeg is not an easy format though:
Read this for more info:
thanks for the quick reply...i'll check on the link! Thanks again..