- How to convert to images from blob data from database.
2.then that converted image should stored into the user specifying location in the local machine.
2.then that converted image should stored into the user specifying location in the local machine.
Answer :
$sql="select * from new_table where imageId='9'";
$result=mysqli_Query($con,$sql);
$row=mysqli_num_rows($result);
while ($row = mysqli_fetch_Array($result))
{
$image= $row['imageData'];
$decoded=base64_decode($image);
$name='File2.dwg';
}
file_put_contents($path."/".$name, $decoded);