Re: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Sripathi Krishnan
> > Except of course in IE6 and IE7 which do not support data: URLs; but it > wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-) And IE8 only supports 32KB of base64 data for security reasons, so you do have to watch the size of the image. --Sri On 15 February 2011 15:38, Thomas Br

Re: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Thomas Broyer
On Tuesday, February 15, 2011 9:46:32 AM UTC+1, MJ wrote: > > Just to report back my findings. > > In short: it works! > Except of course in IE6 and IE7 which do not support data: URLs; but it wouldn't stop me if I were you (kill IE, kill IE, kill IE!) ;-) -- You received this message because

Re: Create an Image from received bytes on client side - possible?

2011-02-15 Thread Matej Jelovcan
Just to report back my findings. In short: it works! So, thank you once more. Brgds, MJ On 2/15/11, Matej Jelovcan wrote: > Thanks Sebastian. > > I'll give this a try before I go the pure URL way :) > > Thanks. > > On 2/14/11, Sebastian Rothbucher wrote: >> Hi, you might try using a base 64 st

Re: Create an Image from received bytes on client side - possible?

2011-02-14 Thread Matej Jelovcan
Thanks Sebastian. I'll give this a try before I go the pure URL way :) Thanks. On 2/14/11, Sebastian Rothbucher 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,

Re: Create an Image from received bytes on client side - possible?

2011-02-14 Thread Sebastian Rothbucher
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 fra

Re: Create an Image from received bytes on client side - possible?

2011-02-14 Thread Greg Dougherty
I could not find any way to build an Image other than by sending one from the server, when I tried to solve a similar problem two months ago. On Feb 14, 3:16 am, MJ wrote: > Hey guys. > > I did some researching on this matter but besides ClientBundle I > failed to find something that would help m

Create an Image from received bytes on client side - possible?

2011-02-14 Thread MJ
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 fil