Just to report back my findings. In short: it works!
So, thank you once more. Brgds, MJ On 2/15/11, Matej Jelovcan <[email protected]> wrote: > Thanks Sebastian. > > I'll give this a try before I go the pure URL way :) > > Thanks. > > On 2/14/11, Sebastian Rothbucher <[email protected]> wrote: >> Hi, you might try using a base 64 string as source. So when you have a >> base 64 string, you might try: >> Image myimage=new Image(); >> myimage.setUrl("data:image/jpeg;base64,"+picdata.getText()); >> Maybe this works; to be honest, I'm not 100% sure but GWT seems to do >> this for some image coming with the framework... >> >> Best regards >> Sebastian Rothbucher >> >> On 14 Feb., 10:16, MJ <[email protected]> wrote: >>> Hey guys. >>> >>> I did some researching on this matter but besides ClientBundle I >>> failed to find something that would help me here. ClientBundle would >>> work OK in case I would have the images as static references, but what >>> I am trying to do (just playing around, getting to know this GWT) is >>> similar to file explorer. A tree on the left side of my workspace >>> shows folders with files inside them. For my purposes, picture files. >>> And these folders can be anywhere on the HDD. Now, how would I go >>> about sending selected image (or complete folder content) to client >>> side? >>> >>> What I had in mind is that I would create a widget that would hold an >>> Image object on it + perhaps a label or two. Nothing fancy. This >>> widget would call a asnyc service to get the picture data from the >>> server. Bytes. But, once I would get the data to the client side, how >>> can I create an Image object out of it? I did not find a way. >>> >>> Alternative I could probably make browsing only possible on such >>> folders that are accessible over the internet (virtual folders I think >>> is the correct term) and just send over appropriate URLs, since Image >>> does accept such parameter. But I would really like to know if >>> original idea is feasible. ImageResource from received bytes? >>> >>> Thank you all. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
