Regarding OTA image in Nokia Search Search

Now SMS/MMS Gateway » Now SMS/MMS Gateway - MMS & Advanced Issues (Product Support Only) » Archive through February 20, 2004 » Regarding OTA image in Nokia « Previous Next »

Author Message
Shine wellington
New member
Username: Shine_jp

Post Number: 1
Registered: 02-2004
Posted on Tuesday, February 17, 2004 - 08:20 am:   

Hi,

I changed an image to OTA format .ANd then i read it and stored it in a short array.
I want to use drawPixels() of DirectGraphics.
But at run time its showing exception.
java.lang.ArrayIndexOutOfBoundsException: Not enough pixels in pixel array.

What can be the reason.

Width is 23
height is 22

Rest data length is 66.

Regards
Shine
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1912
Registered: 10-2002
Posted on Wednesday, February 18, 2004 - 08:26 pm:   

Sorry Shine,

I've never worked with an OTA format image in the manner that you are describing.

But if the width is 23, and the height is 22 ... my gut says that the tool you are using might not like that the width is not divisible by 8. Try making your image width 24 x height 22, and it might work better.

-bn

Search Search Tree View Tree View   Home Home
Login Login / Register Topics Topics Search Last 1|3|7 Days   Previous Page Previous Next Next Page

© Copyright 2002-2008 by NowMobile.com Limited
Airport House, Purley Way, Croydon, London, CR0 0XZ, UK
UK Tel: +44-20-8286-8080 US Tel: +1.410.833.8711
email : nowsms@nowsms.com