Hi
I need to insert an image file in to an access database OLE OBJ field. There are a few problems i am having, i have looked in to the filesystemobject. The first problem im having is that when you post an image file whith a form how do u recive both the path and file on the other side in ASP, request.form.('imagefile') is the path but where is the file in PHP it goes like this its:
$path = $_POST['imagefile']
$file = $_FILES['imagefile']['tmp_name']
Can sumone please give me the ASP uploadscript for an image binary to OLE feild so i can look at it please. i just need the part after the form has submitted the file.
i can upload in PHP fine:
$audiodata = $_FILES['fileaudio']['tmp_name'];
$fopen=fopen($audiodata, "rb");
$size=filesize($audiodata);
$fread=fread($fopen, $size);
$audiodata = addslashes($fread);
$sql = "INSERT INTO audio (audio) VALUES ('".$audiodata."');";
mysql_query($sql, $conn)
I know the concept of embeding i just cant do it in ASP.
Thanx alot for any help.
Nadeem