I m working on a web project of mine and for that aspect I need to send binary image streamed directly to a file through PHP any clue by you guys will be great
Binary Image streaming
Moderator: General Moderators
Binary Image streaming
Hello Everyone
,
I m working on a web project of mine and for that aspect I need to send binary image streamed directly to a file through PHP any clue by you guys will be great
[/b]
I m working on a web project of mine and for that aspect I need to send binary image streamed directly to a file through PHP any clue by you guys will be great
Code: Select all
$somepicture = $_FILES['pictur....// if comes from the form
$file1 = fopen($somepicture, "r");
$pic1 = base64_encode(fread($file1, 5000000));Dont forget to add enctype to the form
Code: Select all
<form action="e;"e; method="e;post"e; enctype="e;multipart/form-data"e;>
<input type="e;file"e; name="e;picture"e;>
</form>