0

Possible Duplicate:
How to convert image into base64 string using javascript

I need to post an image using AJAX, but IE does not support it. So I would like to know if I can convert the image to base64 using javascript and then post that to the php script which will then decode it and save it as an image.

Is this possible?

Community
  • 1
  • 1
Dean Harber
  • 71
  • 2
  • 8

1 Answers1

0

Rather than using JS to transform in a base64, use the enctype on the form :

<form action="your_script.php" method="post" enctype="multipart/form-data">
MTranchant
  • 485
  • 1
  • 7
  • 23