How do I save and load an image?

0 favourites
  • 3 posts
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • After a snapshot(usermedia) i store the image data (like below text)

    i cannot load it back from Sprite's action (Load image from URL)

    console error: Failed to load texture, TypeError: Failed to fetch

    i am making an image transfer between player via MultiPlayer plugin

  • the community seems killed by Ashley, it's alright i might Google the old good time myself to see how

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You need to transfer the image either in base64 format as I indicated below or store it on hosting and transfer the url address.

    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL0UExURf/Sf//Se//RefvTjvDXsOXby9ze3dXg6NLh79Xg6dve3uTbzO/YsvrUkP/Sff/RePjVmNbg6dDh8tDi89Hh8tLh8dLh8NXg6uTbzffVm//Sev3ThejaxNPg7dHh8dPh7ebax/3Th/nUltPi8dve4PfVmfbVnNff5tTi8dTj8tDf7sva6cfX5cfW5cra6dTi8tDh8/XVofnUlcTU46/Az5+ywZisu5aqua6/zsPT4snZ6Km7ypWpuJOntpWquZSot6i6ycjY59re4PzTif/Seejaw9Hj9cHR4JqtvJOnt7/P3s7i9ufaxv/TffDLiaq5xMPU45KpupCou93d2vXVoP/SfP/TfMi7pI2mua2/zsvb6srZ6JquvZSpuJGou5qrt7W0rcW6pca7pba1rJust5esvMTW6Nng5ffPhaGutJSpupuuvZ6xwMG5p/DMiv/SfvLMicS6ppOpupqrtdbFqf3UjOHFlZGputG/n9XBnJCoupSpucC4qPHMiv/RfPrSgejUjP7Sf8m8o9bBnOTHk9zWlHrduQDgxtzVk7O0rZmrt+/Li//Re+vUiprbsADhyQDiywDhys3Xm6Kus7KzrvfTg7bZpjPgxADizHbeuobctQDiys7XmsK5p/LThmfevMLYoLnZpm3euy7gxb7Yov7SfbGzrvjSgrrZpD3gw2/evIP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ee8y24ATTC8+YxkApgiganbGCKirQtujXl9kGgirAKoBHmtjfPg5IIFGjeuQtKPvfugzyW/6AT5BHbh4/ENMEpWllT+fE5kHzck6fg6PN99vwFkGtv8/KVnpaYmJb2awcbe6BA4JFaaOCGdT8HB4a9p5npm7emZu9A0uZxR97DQy7sWedZcIjb2djbgxOPud3ZD7WIkGXwffDxE0QJBGSdjb//GTnyGPLDvjQdKQ8KBCr6GhhU/u37D2AooQLfsIyyps7J8fGZP8N//Q6DamdgAADgBAQKsdvN6AAAAABJRU5ErkJggg==

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)