<?php
$mysqli=mysqli_connect('localhost','root','','test');
if (!$mysqli)
die("Can't connect to MySQL: ".mysqli_connect_error());
$stmt = $mysqli->prepare("INSERT INTO video (pic) VALUES(?)");
$null = NULL;
$stmt->bind_param("b", $null);
//$stmt->send_long_data(0, file_get_contents("foto/pic.bmp"));
$stmt->send_long_data(0, file_get_contents("php://input"));
$stmt->execute();
$mysqli->close();
?>