You Are Here:

Community: Developer Discussion Boards

#1 Old Question Saving images on the phone (PNG, JPG...) - 2006-07-24, 11:02

Join Date: Apr 2006
Posts: 5
rikow
Offline
Registered User
Hello everybody,
I have written an applet that allows drawing images (with the help of the Graphics class). My data is stored in a byte array.

How can I save these images on the phone?

Any idea? package?...
Thanks a lot for your help,

Rikow
Reply With Quote

#2 Old Re: Saving images on the phone (PNG, JPG...) - 2006-07-24, 18:24

Join Date: Nov 2003
Posts: 3,641
Location: Bangalore , India
Send a message via Yahoo to balagopalks
balagopalks's Avatar
balagopalks
Offline
Forum Nokia Expert
I have already posted a reply here in this link
http://discussion.forum.nokia.com/fo...907#post224907

Please dont make multiple postings in same regard, that may confuse other users searching in future.

Regards
Gopal
Reply With Quote

#3 Old Re: Saving images on the phone (PNG, JPG...) - 2006-07-25, 07:06

Join Date: Feb 2006
Posts: 689
soku123
Offline
Super Contributor
Hi rikow,
You can save the images to the filesystem on the phone if ur phone supports jsr75.Please read jsr75 guidelines.

Thanks

Soku
Reply With Quote

#4 Old Re: Saving images on the phone (PNG, JPG...) - 2006-07-25, 11:48

Join Date: Apr 2006
Posts: 5
rikow
Offline
Registered User
Thanks a lot for your answers!
but....
Do I need a PNG encoder (for example) for midlet? I did not found any on the web...
My phone is a Nokia 6680 and supports FileConnection... but I think the main problem is to encode my image (byteArray) in a picture format, as PNG.
How can I do that?
Any Idea? link? code? encoder?
Reply With Quote

#5 Old Re: Saving images on the phone (PNG, JPG...) - 2006-07-25, 19:34

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
Hi,

U will surely require a png encoder. this is because u have to convert an image to bytearray inorder to save it in the filesystem.

AFAIK there is no readily available png encoders for J2me. the only thing u can do is that there are png encoders available for j2se. u have to port it into j2me.

For this u may use google

Regards,
Wang
Reply With Quote

#6 Old Re: Saving images on the phone (PNG, JPG...) - 2006-07-26, 00:42

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hello Wang,

bear with me (still learning) but PNG encoding should be default encoding for captured image byte array (PNG is default encoding that should be implemented to byte array according to JSR docs),
also we (I also have 6680) should be able to specify encoding in getSnapshot(..) method,
according to Nokia docs that's default in fact:
Code:
videoControl.getSnapshot(null);     // default PNG, 160x120
(taken from "Java Developer library" doc),
so after taking byte array shouldn't we simply be able to write it to file with ".png" extension?

regards,
Peter
Reply With Quote

#7 Old Re: Saving images on the phone (PNG, JPG...) - 2006-12-08, 07:56

Join Date: Oct 2006
Posts: 38
alliance205
Offline
Registered User
Quote:
Originally Posted by peterblazejewicz
hello Wang,

bear with me (still learning) but PNG encoding should be default encoding for captured image byte array (PNG is default encoding that should be implemented to byte array according to JSR docs),
also we (I also have 6680) should be able to specify encoding in getSnapshot(..) method,
according to Nokia docs that's default in fact:
Code:
videoControl.getSnapshot(null);     // default PNG, 160x120
(taken from "Java Developer library" doc),
so after taking byte array shouldn't we simply be able to write it to file with ".png" extension?

regards,
Peter
I think what he meant was images drawn, not captured by the camera..
Anyway, does anyone of you know of a j2me jpg encoder? thanks!
Reply With Quote

#8 Old Re: Saving images on the phone (PNG, JPG...) - 2006-12-08, 08:35

Join Date: Nov 2003
Posts: 3,641
Location: Bangalore , India
Send a message via Yahoo to balagopalks
balagopalks's Avatar
balagopalks
Offline
Forum Nokia Expert
May be you should give a try with the encoding part of "JpegEncoder.java" in this link (Not tried it myself yet!)
http://koders.com/java/fidD639747F90...essdash.ui.lib
Yep! This is a J2SE code, give a try adapting the encoding part to J2ME!

Hope this helps!

Regards
Gopal

__________________
MobiQuil.com
An initiative by Developers for Developers.
http://www.mobiquil.com - Alpha - Launched.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
png and jpg simonesec Mobile Java Media (Graphics & Sounds) 3 2005-06-06 09:24
using jpg instead of png??? farhanx Mobile Java Media (Graphics & Sounds) 13 2003-10-15 03:38
Uploading files (images) from phone miniwanker Browsing and Mark-ups 1 2003-09-03 10:02
Saving Phone Numbers Nokia_Archive Browsing and Mark-ups 1 2002-05-17 04:13
Saving Phone numbers/names Nokia_Archived General Browsing 1 2002-05-16 20:42

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ