shankar101854 / flashcanvas

Automatically exported from code.google.com/p/flashcanvas
0 stars 0 forks source link

FlashCanvas does not lead base64 encoded images #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an Image Object in javascript. 
2. Assign to the SRC property of the image base64 encoded data such as this:
image.src = 'data:image/png;base64,iVBORw0KGgoAAAANS...' (data truncated)
3. Use the drawImage method to load the image into the canvas.

What is the expected output? What do you see instead?
I expect the image to be loaded into the canvas, instead I see and I get a 
javascript error on line 24. Like 24 has too many instructions and I can't find 
the exact place.

What version of the product are you using? On what operating system?
I am trying to use it on IE8 on Windows XP, I don't know the version, I 
downloaded it a week ago from the page.

Please provide any additional information below.

The image data is obtained dynamically from a database stored in MYSQL, through 
PHP. 

This method works well in browsers that do not require flashcanvas, such as 
Firefox, Chrome, Opera and Safari.

Original issue reported on code.google.com by shin...@gmail.com on 23 Dec 2011 at 6:02

GoogleCodeExporter commented 8 years ago
A small correction to the subject line, it should have said "load" instead of 
"lead".

Original comment by shin...@gmail.com on 23 Dec 2011 at 6:02

GoogleCodeExporter commented 8 years ago
Correction to this answer:
What is the expected output? What do you see instead?
I expect the image to be loaded into the canvas, instead I see and I get a 
javascript error on line 24. Like 24 has too many instructions and I can't find 
the exact place.

It should have said:
I expect the image to be loaded into the canvas, instead I see nothing and I 
get a Javascript Error on line 24. Line 24 has too many instructions and I 
can´t find the exact place.

Original comment by shin...@gmail.com on 23 Dec 2011 at 6:04

Attachments:

GoogleCodeExporter commented 8 years ago
Could you show me the code you wrote? I wrote the attached sample code, and it 
worked without problem.

Original comment by revu...@gmail.com on 11 Jan 2012 at 3:13

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

I have the same issue.
Steps to reproduce:
1. drawImage into the canvas
2. retrieve basde64-encoded image by toDataURL function
3. try to drawImage(), image's src equals to retrieved data

Result: I see nothing
Expected result: I have to see the image

Original comment by victor.p...@gmail.com on 27 Feb 2013 at 4:05

GoogleCodeExporter commented 8 years ago
As additional to the previous comment,
It looks like that flashCanvas base64-encode works incorrect...

Original comment by victor.p...@gmail.com on 27 Feb 2013 at 4:13

GoogleCodeExporter commented 8 years ago
Or,
the problem is in length of encoded image.
Try the image in attached file (base64 encoded).

Original comment by victor.p...@gmail.com on 27 Feb 2013 at 4:21

Attachments:

GoogleCodeExporter commented 8 years ago
IE8 only supports data URIs smaller than 32KB.
To avoid this restriction, you should write your code in the following way.
http://flashcanvas.net/docs/issues

Original comment by revu...@gmail.com on 6 Mar 2013 at 2:33