HowMayIHelpYou Posted July 9, 2013 Share Posted July 9, 2013 Hi, I was wondering if there is a way to create sprites using base64 encoding rather than loading an image from a URL? The reason being is I store my images within mongodb and would prefer to keep it that way. Thanks Quote Link to comment Share on other sites More sharing options...
Ezelia Posted July 10, 2013 Share Posted July 10, 2013 I think so, just use the fromImage() methods and use the base64 URL as image url Quote Link to comment Share on other sites More sharing options...
HowMayIHelpYou Posted July 10, 2013 Author Share Posted July 10, 2013 Sweet, works perfectly! Thanks Ezelia Quote Link to comment Share on other sites More sharing options...
hopewise Posted November 22, 2016 Share Posted November 22, 2016 Would you please share code example of using the fromImage() methods and use the base64 URL as image url? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.