Base64 data is not in proper format
Hello Everyone;
I'm hoping someone can give me some guidance on the issue that I'm having. I am working on some code for a photo badge card. After the photo is taken I click a print preview button that opens the badge in a PDF of the badge and I print it from there. However, I get the following error:
The Base64 data is not in proper format. Data should be in the format understood by the <img> tag in HTML, which is "data:image/jpg;base64,[base64 data]"
<cfset myImage = ImageReadBase64("#form.xBase64PhotoString#")>
<cfimage source="#myImage#" destination="c:/workgroups/webdata/badgecards/#BadgPhotoName#" action="write" overwrite="Yes">This is my first experience with photos so I would appreciate any help that I can get. Please let me know if you need anymore information.
