00.Forums
ASP image binary to OLE obj field in access DB and embed in image tag after
Started by nadeemshafi9 at 11-18-2006 9:46 AM. Topic has 0 replies.
  Page 1 of 1 (1 items)

nadeemshafi9
nadeemshafi9
Added: 9:46 AM on 11/18/2006

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


theSpoke.net » English Topics » Coding » ASP image binary to OLE obj field in access DB and embed in image tag after
© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR