Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8308309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:46:14+00:00 2026-06-08T18:46:14+00:00

I am working on a mobile application advertisement project so I need banner or

  • 0

I am working on a mobile application advertisement project so I need banner or thumbnail of application image to be made. The list of applications is coming live from google play and apple store. So my website is making use of other outbound domains and not local domains.

I am using HTML 5 canvas element to manage runtime functionality and to save entire canvas as an image. What I need to do is to make default banner(after saving canvas) based on user’s color preference and font color etc.

My canvas coding is given below :

<canvas id="myCanvas" name="myCanvas" width="300" height="100" style="border:1px solid;margin-top: 25px;margin-left: 73px;margin-bottom: 12px;background: -moz-linear-gradient(top,  #4c4e54,  #4c4e54);"></canvas>

and the js that I used to convert simple URL to data URL is :

 var myCanvas = document.getElementById("myCanvas");
 var canvasData = myCanvas.toDataURL("image/png");

What happens over here is that whenever I tries to save my entire canvas element using data:URL, mozilla fiefox give me following error :

Security error
[Break On This Error]   
var canvasData = myCanvas.toDataURL("image/png");

I have searched through a number of posts and forums but no one is giving appropriate solution for this.

Passed a lot of time but creating a lot of havoc for me.

Any suggestions will be entertained

Thanxs in advance….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:46:16+00:00Added an answer on June 8, 2026 at 6:46 pm

    I have read your post and what i found is the same problem that I was facing.

    You are getting this error because the images which your application fetches are from live google.play server or from apple store server.

    Security is essential whenever we are using canvas. Security is good feature of canvas.

    What you are doing is you just fetch the image and resizing and implementing it on canvas.Due to security feature it is not allowing you to manipulate outbound server’s image and save it in your DB.

    You can use allow-file-access-from-files in console along with firefox.exe command and check it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For the project I am working on we need a mobile application and for
I'm working on an order entry application targeted to windows mobile devices. I need
I am working on an application with JQuery Mobile. I need to use a
I'm currently working on a consumer mobile application project and have read that 40%
I am busy working on a mobile application that retrieves data from a web
I am working on an application for windows mobile 7. I need to send
I am working on a mobile application in .NET. This is a windows mobile
I'm working on a mobile application (C#/WPF on a tablet PC) that prints to
I'm working on a mobile application where I'm trying to combine jQuery UI's draggable
I am currently working on a mobile application with VS2008 which has a capacbility

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.