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

  • Home
  • SEARCH
  • 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 4338844
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:08:11+00:00 2026-05-21T11:08:11+00:00

I am trying a simple query which gets an image, and loads its data

  • 0

I am trying a simple query which gets an image, and loads its data into a variable.
This code works on Safari(5), but doesn’t work on Firefox(3.6.3 for Mac) or Chrome(10 for Mac).

Here’s the code: http://jsfiddle.net/saTzx/

Any idea what could be going wrong?

Another question related to this code is, shouldn’t drawImage() actually draw the image? This doesn’t happen in any of the browsers.

  • 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-05-21T11:08:11+00:00Added an answer on May 21, 2026 at 11:08 am

    The image is drawn, you just never appended the canvas to any parent element (e.g. document.body.appendChild(canvas)).

    I get “Failed to load image” (also, that isn’t the real error, the image is loaded) in Safari too, and rightly so. You are trying to read image data tainted by an image without any appropriate CORS headers, which is the source of your error. Fix your headers.

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

Sidebar

Related Questions

I'm trying to perform a simple LINQ query on the Columns property of a
I am trying to write simple Visual Studio Add-In for code generation. In my
I created a simple .Net web service which runs a very simple query (which
I am trying to develop a T-SQL query which will do the following: ROUND(100
I'm trying to do a simple insert query in mysql using java. How do
I am trying something very simple, but for some reason it does not work.
I am trying to get simple jQuery to execute on my Content page with
I am trying to do simple tutorial in Visual Studio let someNumber = (2
I'm just trying to do simple scripting with F#, and Math.PI seems to have
I'm writing an application and I'm trying to tie simple AJAX functionality in. It

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.