Monday, February 23, 2015

Re: Display images stored in database

Just to add more info, the way I pass image from backend to frontend is by: "data:image/png;base64,"+ Base64.encodeBase64String(imageByteArray). This send a huge string to the browser which I then set to the Image widget. I am not sure if this is causing the issue, but is there any other way to send the image to the browser?


On Sunday, February 22, 2015 at 11:53:06 PM UTC+5:30, Tushar Bhasme wrote:

There have been many threads on this topic but I am facing a different issue. We have to upload logo for each record entered. When records are fetched, we need to display the record with the logo too.

To upload the logo, I simply used a form with file upload and hidden fields of the record to associate the logo and record. On SubmitCompleteEvent, I fire an RPC to fetch the image saved in the database.

Till now, it works fine but the issue now comes when the user tries to upload an image twice or thrice for the same record. GWT does not show the latest image saved in database. On page refresh, it randomly shows either of the images user had uploaded for the record, even though the record can have only one image associated to it.

Could this be some browser caching issue? If it is, how can I get around it?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment