Centar za edukaciju-BiH



#1 29.09.2020-08:47
Avko Offline
Administrator
Registrovan/a od: 28.05.2014-09:21
Komentari: 3,951


Subject: prikaz slike upisane u php
DownloadIzvorni kod (PHP):
  1. $img_folder="iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGrSURBVDjLxZO7ihRBFIa/6u0ZW7GHBUV0UQQTZzd3QdhMQxOfwMRXEANBMNQX0MzAzFAwEzHwARbNFDdwEd31Mj3X7a6uOr9BtzNjYjKBJ6nicP7v3KqcJFaxhBVtZUAK8OHlld2st7Xl3DJPVONP+zEUV4HqL5UDYHr5xvuQAjgl/Qs7TzvOOVAjxjlC+ePSwe6DfbVegLVuT4r14eTr6zvA8xSAoBLzx6pvj4l+DZIezuVkG9fY2H7YRQIMZIBwycmzH1/s3F8AapfIPNF3kQk7+kw9PWBy+IZOdg5Ug3mkAATy/t0usovzGeCUWTjCz0B+Sj0ekfdvkZ3abBv+U4GaCtJ1iEm6ANQJ6fEzrG/engcKw/wXQvEKxSEKQxRGKE7Izt+DSiwBJMUSm71rguMYhQKrBygOIRStf4TiFFRBvbRGKiQLWP29yRSHKBTtfdBmHs0BUpgvtgF4yRFR+NUKi0XZcYjCeCG2smkzLAHkbRBmP0/Uk26O5YnUActBp1GsAI+S5nRJJJal5K1aAMrq0d6Tm9uI6zjyf75dAe6tx/SsWeD//o2/Ab6IH3/h25pOAAAAAElFTkSuQmCC";
  2.        
  3. header("Content-type: image/png");
  4. echo base64_decode($img_folder);

ovo mi nesto nece proraditi, a kako se dobije ono i $img_folder?


Život je moja domovina.
↑  ↓

#2 29.09.2020-08:59
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Komentari: 10,252


Subject: Re: prikaz slike upisane u php
Vjerovatno problem kodne strane.
Vidim kako si dobio kada si kopirao.
Da bi isprobao uzmi neku svoju png malu slicicu te je podigni u notepadu i kopiraj sadrzaj umjesto ovoga sadrzaja iza
$img_folder=
Pozdrav
↑  ↓

Stranice (1): 1


All times are GMT +01:00. Current time: 24.11.2020-09:42.