0

I just use the following php code but encoded image requires more memory so that i want to use stream method. Please anyone suggest me. Advance thank you.

<?php
$base=$_REQUEST['image'];

$binary=base64_decode($base);

header('Content-Type: bitmap; charset=utf-8');

$file = fopen('uploaded_image.jpg', 'wb');

fwrite($file, $binary);
fclose($file);

echo 'Image upload complete!!, Please check your php file directory……';
?>
segarci
  • 739
  • 1
  • 11
  • 19
CGN
  • 13
  • 4

1 Answers1

0

Just set a higher max_upload_size in your webserver's config.

Community
  • 1
  • 1
Alex M.
  • 635
  • 1
  • 6
  • 19