• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to download n files once from a midlet ?

 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic