La funzione file_get_contents($NewImg) non legge una risorsa "immagine" (come nel tuo caso) ma solo file già salvati sul disco.
Quindi prima di trasmettere la tua immagine al db devi salvarla in un file temporaneo, e solo dopo potrai trasmetterla al db:
Codice PHP:
function upImg($File, $Size, $Op){
if($Size > 2000000){
throw new Exception("Massimo 2MB");
}
list($Width, $Height, $Ext) = getimagesize($File);
if($Ext != 1 && $Ext != 2 && $Ext != 3){
throw new Exception("Formato supportato JPG, GIF e PNG");
}
if($Ext == 2) $ImgUp = @imagecreatefromjpeg($File);
elseif($Ext == 1) $ImgUp = @imagecreatefromgif($File);
elseif($Ext == 3) $ImgUp = @imagecreatefrompng($File);
$NewImg = imagecreatetruecolor(32, 32);
imagecopyresized($NewImg, $ImgUp, 0, 0, 0, 0, 32, 32, $Width, $Height);
@image_png($NewImg,"temp.png");
$NewImg = file_get_contents("temp.png");
$Image = addslashes($NewImg);
$Query = "UPDATE Users_Info INNER JOIN Users_Auth ON Users_Info.ID = Users_Auth.ID SET Users_Info.Avatar = '$Image' WHERE Users_Auth.NickName = '".$_SESSION["Confirm"]['NickName']."'";
mysql_query($Query, $this->ConnUser)or die("Error!!!!");
}