You Are Here:

Community: Developer Discussion Boards

#1 Old Problem when creating Image !!! - 2006-12-06, 17:32

Join Date: Oct 2006
Posts: 19
cvraiden
Offline
Registered User
Hi all,

I am writing a midlet that connect to IP cam and display the jpeg images on the phone. This midlet already worked fine on Sony Ericsson phone but it failed on Nokia. When I tried to create an image from the input stream of the IP camera, it threw an exception: java.lang.IllegalArgumentException: Image format is not supported.

This is my code to create an image

MJPEGFrame frame = (MJPEGFrame) obj;

try
{
img = Image.createImage(frame.getData(), 0, frame.getData().length);
}
catch( Exception e )
{ e.printStackTrace();}

MJPEGFrame is an object that hold the data of images. The exception was caught at Image.createImage although again it worked on SE fones.

So my question is
1. how to create image on Nokia
2. I heard that some people use Nokia API to create image, so could some one show me some example or info about Nokia API.

Thank you so much.
Reply With Quote

#2 Old Re: Problem when creating Image !!! - 2006-12-06, 19:43

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Which Nokia device did you try this on?

Hartti
Reply With Quote

#3 Old Re: Problem when creating Image !!! - 2006-12-08, 09:47

Join Date: Oct 2006
Posts: 19
cvraiden
Offline
Registered User
Hi everybody,

I tested my midlet on emulators from the Carbide.j which is integrated in Eclipse including Prototype_4_0_S60 and Prototype_4_0_80. On these emulators, it is said that the image format is not supported. However, when I tested it on S60 emulator from S60 SDK, it worked.

So could you give me your ideas about this problem.

Thank you.
Reply With Quote

#4 Old Re: Problem when creating Image !!! - 2007-07-10, 17:33

Join Date: Jun 2007
Posts: 27
NFC_Man
Offline
Registered User
Hi,

I have the same problem!!
I use the 6131 NFC which should support jpeg!!

what is the problem??
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
creating dynamic custom image farhanx Mobile Java General 1 2006-11-05 15:55
how to cut some part of Image mshouab Mobile Java Media (Graphics & Sounds) 2 2006-08-04 10:05
Image Upload Problem tvaughton Mobile Java General 4 2005-08-17 09:36
Transfering image to series 40 device problem andk General Symbian C++ 3 2004-04-20 08:40
problem with a speed of repaint image marcart Mobile Java Media (Graphics & Sounds) 2 2003-08-28 13:10

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