Loading multiple images.
3 posters
Page 1 of 1
Loading multiple images.
Hi,
does anyone have suggestions on how to load multiple images dynamically from web server, with one http request. I can do it with single http requests per image, but i want to download multiple images with one go.
does anyone have suggestions on how to load multiple images dynamically from web server, with one http request. I can do it with single http requests per image, but i want to download multiple images with one go.
suz- Posts : 12
Join date : 2007-09-20
Re: Loading multiple images dynamically
Hi,
There is solution to this problem, You can recieve multiple images together by multipart http response.For more queries you can contact me.
thanks
Nishtha
There is solution to this problem, You can recieve multiple images together by multipart http response.For more queries you can contact me.
thanks
Nishtha
Re: Loading multiple images.
Hi suz,
Using multi-part in your protocol is a scalable solution. You may send a number of images along with text information(optional) for each image. But it adds few KB in your jar. Should be used only if u want long term extendable solution.
If know the size of images in advance then youmay get all images in single stream and then break the byte[] according to individual image size. It is the simplest and fastest approach.
Do let me know for further queries.
Guantana
Using multi-part in your protocol is a scalable solution. You may send a number of images along with text information(optional) for each image. But it adds few KB in your jar. Should be used only if u want long term extendable solution.
If know the size of images in advance then youmay get all images in single stream and then break the byte[] according to individual image size. It is the simplest and fastest approach.
Do let me know for further queries.
Guantana
Re: Loading multiple images dynamically
Hi all,
Thanks for your help. Please could you tell me more about downloading multiple images with one http request using Multipart Http Response. Does it involve zipping all images?
Thanks for your help. Please could you tell me more about downloading multiple images with one http request using Multipart Http Response. Does it involve zipping all images?
suz- Posts : 12
Join date : 2007-09-20
Re: Loading multiple images.
Hi suzz,
Multipart is a format of the content that may be send over http. In multipart format u may embed multiple parts where each part could be text(like xml) or binary (like image/ audio/ video).
What need to do for this?
At server side, you need an Multipart generator (MultipartOutputStreamWriter), which writes multiple parts in a single response stream.
At client side, you need Multipart parser, which could seperate out all the parts from single stream.
I used it in my last project, and it really saved a big overhead by sending multiple chunks in a single request.
If you don't find these files on net, do let me know. I will mail it to you.
Guantana.
Multipart is a format of the content that may be send over http. In multipart format u may embed multiple parts where each part could be text(like xml) or binary (like image/ audio/ video).
What need to do for this?
At server side, you need an Multipart generator (MultipartOutputStreamWriter), which writes multiple parts in a single response stream.
At client side, you need Multipart parser, which could seperate out all the parts from single stream.
I used it in my last project, and it really saved a big overhead by sending multiple chunks in a single request.
If you don't find these files on net, do let me know. I will mail it to you.
Guantana.
Similar topics
» Creating small images from set of images - problem with tran
» Is there any way to include the support for multiple languag
» Which phone models doesn't support jpeg images?
» Is there any way to include the support for multiple languag
» Which phone models doesn't support jpeg images?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|