Thursday, September 5, 2013

Upload blob: image from GWT

I managed to get a blob and create a URL for it which I put in a img tag src attribute to show the image like this:

<img class="gwt-Image" data-field="image" src="blob:http%3A//127.0.0.1%3A8888/757c3c87-de5c-4c54-897e-9d043bc2895c">

My question would be how would I upload this blob via GWT FileUpload with com.google.gwt.user.client.ui.FormPanel?

Also the com.google.gwt.user.client.ui.FileUpload does not have a setFilename method to programatically set the filename as oppose to selecting via File/Window box.

So, it seems its like impossible to do this with GWT, I've seen pure Javascript solution.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment