I think this is fairly straight forward but my skills lie in JavaScript and Ruby rather than flash so I want to run this past a few other minds :)
I have a flash file that will take pictures of the user via their web cam. I want to take that newly created image, base64 encode it then pass it to a JavaScript function. That JavaScript function will essentially take this data then embed it into a hidden form element on the page.
When the form is uploaded, I'll reconstruct the image from the base64 encoding back into a jpg.
Can anyone see any gotchas in this approach? I'm already assuming I'll need to use the correct mime-type encoding on the form element (multipart).