İki yolu var eğer resimleriniz küçük ise;

$path = "resmin TMP adresi veya yüklendikten sonraki yolu";
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
iknicisi Dosyayı yükleyip yolu veritabanına kaydetmek

$dizin = '/var/siteler/uploads/';
$seo= slugify(basename($_FILES['kulldosyasi']['name']));
$yuklenecek_dosya = $dizin . $seo;
if (move_uploaded_file($_FILES['kulldosyasi']['tmp_name'], $yuklenecek_dosya))
{
    echo "Dosya yüklendi (veritabaninda bulunacak ad: ".$seo.")";
}

echo '<img src="/var/siteler/uploads/'.$seo.'" />';

static public function slugify($text){$text=preg_replace('~[^\pL\d]+~u','-',$text);$text=iconv('utf-8','us-ascii//TRANSLIT',$text);$text=preg_replace('~[^-\w]+~','',$text);$text=trim($text,'-');$text=preg_replace('~-+~','-',$text);$text=strtolower($text);if(empty($text)){return 'n-a';}return $text;}