Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to download n files once from a midlet ?

 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have developped a midlet that connect to my server.
You have guessed.There are some handset whose size is limited.
To resolve that , I think that I could separate images from code sources.
In the first connection my midlet get the n images.I would like avoid n connections.

How to download n files once from a midlet ?

OULD NADIF
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiya Ould,

What you're wanting to do I've seen discussed before.

You would need to create one large image file, which would contain each of your smaller images. I suppose you would have to create the larger image manually.

Your midlet could then download this single file and then extract the data to re-create each smaller image.

Don't know much else about it, but I've seen it discussed on Forum Nokia a few times, so you might get some more idea from there.

Cheers,
James
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for you reply.
I have developped a java application for two plateforms(J2ME and DOJA).
My previous question concern particularly a DOJA application because its size is limited to 30ko.I may meet the same problem with some J2ME whose size limited.
Here is my final solution that I could implement side DOJA:

In DOJA, the URL's size is limited at 10 ko, to fill the scratchpad(its size at 100 ko) I have to realise 10 connetion http.

Hence if the global size of my images is > at 10 ko I have to make more one connection.
To resolve my problem I have to create a block of 10ko.

to make il properly, I send a xml file to describe the file.

<resources nbFiles=3 nbConnection = 2>
<File name=next type=gif size=1000>
</File>
<File name=prev type=gif size=2000>
</File>
<File name= type=midi size=4000>
</File>
</resources>
followed by the n fchiers binaires


Cheers

OULD NADIF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic