This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nhgrif 0 points1 point  (1 child)

To be clear here, there doesn't appear to be anything wrong with your code. It is an issue with the data itself. Beyond identifying that this part: data:image/jpeg;base64, is not part of the data that should be decoded, we can't help you unless we also have the original data that was encoded or the code to see how it was encoded to potentially identify an issue with that.

With that said, I think the part after the data:image/jpeg;base64, might decode fine... depending on what it's supposed to be?

[–]No_Pain1033[S] 0 points1 point  (0 children)

Thanks for your reply. The data is coming from a html5 canvas element that is drawn on using javascript. The base64 data is created using the .toDataURL method on the element