I'm not sure whether i get this right, but if you want a user to
select an image on his computer and then show it - it can't be done
without sending it to a server. Or you can use google gears - but that
you have to install on every client computer:
http://gears.google.com/
There were a lot of discussions in this group about uploading files
(esp. images) - use search for more information.

On 20 Jan., 07:05, ship <shilpi10ve...@gmail.com> wrote:
> Image class object does not show image on IE 7.0, it show only a small
> colored rectangle on panel. This image client select on his machine. I
> can not fix this image in gwt public folder
>
> Pleeeeeeease give proper solution.
>
> On Jan 19, 8:13 am, ship <shilpi10ve...@gmail.com> wrote:
>
> > Thanks for reply,
> > But I am selecting images by using FileUpload class object on client
> > machine i.e. client select the image on his machine and after clicking
> > on button he can see the image and other options which i am providing
> > to client. For that i can not interact with server, this image is
> > selected by client.
>
> > I can not use GWT public folder or dynamic servlet images for that.
> > I use GWT public folder images to show statically on my web page.
> > These images are showing on IE 6.0 and 7.0 both but user selected
> > images are not displaying on IE 7.0. When i use getHeight() and
> > getWidth() methods of Image class on the user selected image, It gives
> > zero values for both.
>
> > Please give the solution.
>
> > On Jan 19, 7:01 pm, "David Hoffer" <dhoff...@gmail.com> wrote:
>
> > > The Image class expects the image to be specified in terms of a server
> > > (http) URL, same as the setURL() method.  Typically this is either a 
> > > static
> > > image in your GWT public folder or a dynamic image via a servlet.
>
> > > -Dave
>
> > > On Mon, Jan 19, 2009 at 2:52 AM, ship <shilpi10ve...@gmail.com> wrote:
>
> > > > hi to all,
>
> > > > In my web application, I am creating a object of FileUpload class, and
> > > > adding a button on the web page, when i click on the button, it takes
> > > > the file name of the browsed file by using getFilename() method of
> > > > FileUpload class. If this file is an image then I create a image
> > > > object and pass this file name in the image object like that
>
> > > > FileUpload ff = new FileUpload();
> > > > .........
> > > > .........
>
> > > > String s = ff.getFilename();
> > > > Image img = new Image(s);
> > > > panel.add(img);
> > > > .........
> > > > ........
>
> > > > Then i add this image object on the panel. Now if i run this program
> > > > on the IE6.0 it runs successfully i.e. image is displayed on the
> > > > panel. But if i run this program on the IE 7.0, the image is not
> > > > displayed on the panel. When i alerts this Image object in the alert
> > > > dialog box o IE 7.0 this displays:
>
> > > > Window.alert(img);
>
> > > > <IMG class=gwt-Image style="WIDTH: 200px; HEIGHT: 200px" src="c:\users
> > > > \3709001.jpg" _eventBits="229501" _pendingSrc="c:\users\3709001.jpg">
>
> > > > But when i run this on the IE 6.0 this alert displays:
>
> > > > <IMG class=gwt-Image style="WIDTH: 200px; HEIGHT: 200px" src="c:\users
> > > > \3709001.jpg" _eventBits="229501" _pendingSrc="null">
>
> > > > means _pendingSrc is null on the IE 6.0 but pendingSrc is the same as
> > > > src value in IE 7.0.
>
> > > > Please tell me the solution that how could i displayed image on IE7.0
> > > > by using gwt??- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to