I want to use a 3rd party ActiveX on one of my pages that displays CAD drawings. I also want to store the CAD images as BLOB data in a MySQL database.
The control has two methods to display an image, firstly set the FileName parameter to a valid filename within the OBJECT tag or secondly use its Add method to pass the data in binary form, i.e:
document.all.control.Add(ImageData)
I am attempting to use the above method inside a JavaScript function after having first got the data held in a PHP variable - but I am struggling as ImageData may contain characters such as tag delimiters which mess things up somewhat.
Can anyone shed any light? If I cannot find a solution my workaround is going to be to write the BLOB data to a temp file and load it from there.
Thanks