You Are Here:

Community: Developer Discussion Boards

#1 Old PNG download agony - 2008-04-19, 17:20

Join Date: Jan 2008
Posts: 4
seaumus
Offline
Registered User
Dear All,

I have worked on this problem for over 20 hours now, and am no further forward.

I am downloading a series of PNG images, with associated image data (author, comments etc) from my server. Basically I am concatonating all the text and images together as one file and then parsing them in the phone to recreate the text and images i.e

<author>*<comments>*<PNG image>*<author>*<comments>*<PNG image>*......and so on.

To create the images I am using Image= createImage(t,0,t.length) where t is a byte array recreated from the parsed string;

This works fine on Nokia and Samsung phones, but not on Sony Ericsson.

The Sony phones throw up a variety of different errors when trying to expand the images, as below;

java.util.zip.ZipException: invalid bit length repeat
at Java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)


java.util.zip.ZipException: incorrect data check
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)

If I place the images in the jar it runs fine on all phones , but I need to be able to download them from the server.

I can see no difference in the length of the image files after parsing on the phone and when they sit on the server.

To download the images from the server I am using code as follows
in = new BufferedInputStream(new FileInputStream("/home/sites/chordfone.com/users/jedgar/cityads/"+Adsize+"/1/ad001.PNG"));

i=0;
while((i = in.read()) != -1){
out.print((char)i);
}

I have tried using Photoshop and Paint to create the PNG images , but it seems to make no difference.

I am at a loss - the parsed image files seem to be the same length and format as on the server... what am I doing wrong here??....is there something happening during the File streaming process which is screwing things up.

Anyone please help... I will now post this onto the Sony Ericson developer site.

Any help much appreciated
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
How to download a PNG image over http? agajewski Mobile Java General 2 2008-10-03 06:50
Download Application and Technology arizkohli General Browsing 0 2003-06-27 22:28
Download Application and Technology arizkohli General Browsing 0 2003-06-27 16:16
J2ME download fails on UK Orange network shaneporter Digital Rights Management & Content Downloading 1 2002-11-15 18:11

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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