| Reply | « Previous Thread | Next Thread » |
|
Hi All,
I would like to retrieve more than one image (five to be exact) from an http server using J2ME. Can anyone of you help me in the process? Regards, Mudit.
Last edited by muditkmathur : 2003-09-12 at 16:35.
|
| muditkmathur |
| View Public Profile |
| Find all posts by muditkmathur |
|
Do the same as you retrieve one
|
|
hello boss
what i need is i want to retrieve 5 images over http and store the details in the record store....as you know i need to connect to server 5 times....is there anyway that i can retrieve them at once??? have you ever worked with this kind of problem???? thanks |
| muditkmathur |
| View Public Profile |
| Find all posts by muditkmathur |
|
muditkmathur
as you know i need to connect to server 5 times....is there anyway that i can retrieve them at once??? Of course there is. Pack all the images into one file or make server tranfer them as one file and then create images from the received byte stream. |
|
Of course there is. Pack all the images into one file or make server tranfer them as one file and then create images from the received byte stream.
well have you ever worked with this:) how can we transfer them as one file from the server:) sorry if i am asking you too much info....but yeah i need it..... thanks |
| muditkmathur |
| View Public Profile |
| Find all posts by muditkmathur |
|
- create a big png?
|
|
muditkmathur
Have you ever tried to search for some information about things, that yeah i need it? :) Make a search over this forum. This kind of questions is rather frequent here. Have a look at this thread, for example: http://discussion.forum.nokia.com/fo...threadid=28508 well have you ever worked with this:) Not exactly. I read my images AND strings from a single resource within the JAR file - this way they are compressed much better and take less space. This looks generally the same |
|
have the server to send in all five image files in one stream, you need to know the size of each file, so you can decouple them on the j2me client.
e.g. img1.png is size 1000 img2.png is size 900 use data output stream to write writeInt(1000) writeInt(900) write( byteDataOfImg1Png[] ) write( byteDataOfImg2Png[] ) then use createImage on the client side to decode them ben www.benhui.net - mobile developer resources |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|