Thanks Paul & Vivek,
A very warm thankyou for the replies.
Now i am describing the application
1- My Application does not use HTTP Connection Means i does not interact with any back-end application.
2- What i want to do make a simple animated graphic-rich game (like car race or space war etc)
Now if i want to make this type of graphic rich application then i will have to use images because using j2me api i can't generate good quality of graphics through programming.
Now problem is
1- If i adds png images to the application then the size of the whole application increase to 10 times of the simple application as each png image file is of atleast 4kb to 10 kb, This big size of the application is not supported by most of the handsets.
2- I thought to read these png images into byte array then i write them into a txt file in the series of 0's and 1's , planned to read the same at runtime whenever i will have to put an image into the application.
BUT FAILED
For Reading Images :- I used simple
java program to read the png image files and converted that into the array or bits.
Putting Image :- Now at run time i read the txt file and picked the whole stream of 0's and 1's (saved in txt file) in a byte array and used
Image.createImage(byte[] imageData, int imageOffset, int imageLength) method
to convert this byte array into the image
But failed as it shows nothing on the screen neither it gives any error.
I would be highly obliged if anybody can solve my this problem
or
can tell me the way how can i make Graphic rich and animated application in j2me more efficiently.
What is the right way to add a graphic in the j2me application without increasing the size of the applicatiopn too much.
With Best Regards,
Rishi
[ March 10, 2003: Message edited by: Rishi Tyagi ]