Hi Dejan,

How big is your image? When the icon is uploaded it will have to upload the
image too and the time taken will depend on the size of the image and the
available network bandwidth.


I can think of two other solutions that entail extending ULC:

1. If you have fixed set of images, then you can put them in a jar and
deploy them on the client along with ULC's client side jars. You can then
extend ULCIcon or ULCLabel to read and set images from the client itself.

2. You can break up you image file into set of bytes and upload it
asynchronously part by part. You could use the the progress pane (
http://ulc-community.canoo.com/snipsnap/space/Contributions/Extensions/Progr
ess+Pane ) contribution on the community. You can extend ULCLabel or ULCIcon
which can upload the image part by part or use the progress pane that
uploads the parts and finally makes the image visible.

I hope this helps.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Dejan Pecar
>Sent: Friday, August 25, 2006 5:51 PM
>To: Janak Mulani
>Cc: [email protected]
>Subject: Re[2]: [ULC-developer] asynchronous image loading...
>
>
>hi janak,
>
>i tried both ways already but it does not work the way i want.
>
>the main problem ist while the picture is sent ulc client freezes.
>no matter if the event is asynchronous or not.
>
>regards
>  Dejan
>mailto:[EMAIL PROTECTED]
>
>Friday, August 25, 2006, 2:08:18 PM, you wrote:
>
>JM> Hi Dejan,
>
>JM> I can think of two solutions:
>
>JM> 1. if you are setting the icon in some event handler, then you
>could make
>JM> that event asynchronous.
>
>JM> 2. Another way could be to set the icon via a polling timer.
>
>JM> I hope this helps.
>
>JM> Thanks and regards,
>
>JM> Janak
>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] Behalf Of Dejan Pecar
>>>Sent: Wednesday, August 23, 2006 8:13 PM
>>>To: [email protected]
>>>Subject: [ULC-developer] asynchronous image loading...
>>>
>>>
>>>hi,
>>>
>>>does anyone know a way to load pictures asynchronously. when i
>>>take a ULCLabel and call setIcon with a big image,
>>>the ulc client freezes until the pictures is downloaded to the
>>>client. but i would like to have a responsive ui meanwhile.
>>>
>>>regards
>>>  Dejan
>>>mailto:[EMAIL PROTECTED]
>>>
>>>_______________________________________________
>>>ULC-developer mailing list
>>>[email protected]
>>>http://lists.canoo.com/mailman/listinfo/ulc-developer
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to