You Are Here:

Community: Developer Discussion Boards

#1 Old Images through HTTP Connection - 2003-04-18, 23:57

Join Date: Mar 2003
Posts: 4
cristi_armeana
Offline
Registered User
I am trying to get an image through HTTP Connection to my mobile phone. I used emulator from Sun and it is working. When i tried on mobile phone(3650) it will not show anything.
I tried also on Nokia's Developer Suite for J2ME. At the point of connection i have the following exception:

Exception: java/lang/ClassNotFoundException
at com.sun.midp.io.InternalConnector.openPrim(+159)
at com.sun.midp.io.InternalConnector.openPrim(+159)
at com.sun.midp.io.j2me.http.Protocol.connect(+55)
at com.sun.midp.io.j2me.http.Protocol.openInputStream(+64)
at com.sun.midp.io.j2me.http.Protocol.openDataInputStream(+28)
....

Thank you
Reply With Quote

#2 Old 2003-04-21, 16:08

Join Date: Apr 2003
Posts: 34
Location: Russia
lizergil
Offline
Registered User
show your code plz
Reply With Quote

#3 Old 2003-04-21, 16:44

Join Date: Mar 2003
Posts: 4
cristi_armeana
Offline
Registered User
private Image setImage()
{
String url = "http://myAddress/img.png";
Image m_Image = null;
ContentConnection connection = null;
DataInputStream iStrm = null;

try
{
connection = (ContentConnection) Connector.open(url);
iStrm = connection.openDataInputStream();
byte imageData[];
int length = (int) connection.getLength();
if (length != -1)
{
imageData = new byte[length];
iStrm.readFully(imageData);
}
else
{
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();

int ch;
while ((ch = iStrm.read()) != -1)
{
bStrm.write(ch);
}

imageData = bStrm.toByteArray();
bStrm.close();
}
m_Image = Image.createImage(imageData, 0, imageData.length);
}
catch(Exception e)
{
...........
}
........................
Reply With Quote

#4 Old 2003-05-01, 18:48

Join Date: Mar 2003
Posts: 7
candeo
Offline
Registered User
Did you solve this issue? If so,how? We have the same problem.

Thank you
Reply With Quote

#5 Old 2003-05-01, 18:51

Join Date: Mar 2003
Posts: 4
cristi_armeana
Offline
Registered User
Still searching for the solution. It seems that getLength does not return the correct length. I will try on other phones and maybe i will update the software on 3650.
Reply With Quote

#6 Old Cristi : U have the answer? - 2003-05-12, 11:11

Join Date: Mar 2003
Posts: 5
bermei
Offline
Registered User
I have exactly the same problem
Reply With Quote

#7 Old 2003-05-13, 21:00

Join Date: Mar 2003
Posts: 4
cristi_armeana
Offline
Registered User
Solution: The problem was due to a needed update of the mobile firmware.
Last edited by cristi_armeana : 2003-05-13 at 21:29.
Reply With Quote

#8 Old 2003-05-13, 21:15

Join Date: Mar 2003
Posts: 7
candeo
Offline
Registered User
How to you update software on 3650? How do you find-out what version you have installed?
Reply With Quote

#9 Old 2003-05-27, 15:55

Join Date: Mar 2003
Posts: 21
Location: Maastricht, The Netherlands
guidopater
Offline
Registered User
To find out what your software version is on a Nokia just 'call' *#0000#

And software upgrades are available at a Nokia servicepoint.
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

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