scale that I would like to pre-fetch and display/manipulate in an
HTML5 canvas element. The files will typically be local, but since
this is GWT it will (as fas a I know) needs to be sent from the
server.
Since I'm using HTML5 this will target Chrome first, but I'd like to
support Safari and Firefox. IE (even version 9) can go take a hike.
I'm looking for opinions here an three questions.
#1) What is the best way to transfer down (pre-fetch 500) binary files
(array of integers). Sending down an text array with int values seems
in efficient. This article about sending the file down encoded in XML
seems the best option I've found, but want to know if others here have
a different opinion.
Transfer binary data in an XML document
http://javaworld.com/javatips/jw-javatip117.html
#2) The second question is how to store this data on the client side.
It likely will be the HTML5 Web Storage API as implements currently on
Chrome, but I'd like to here others thoughts on this.
#3) Also, I'm going to need to scroll through this images rather
quick, so was was thinking about have a bunch of canvas tags with
images preloaded, but only one visible at a time. An alternative it
have only one canvas take and draw on that anytime someone wants to
scroll though them. Which would be faster?
Thanks.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment