Blockland Forums > Modification Help
Writing binary data from file to network connection
<< < (2/4) > >>
DontCare4Free:

--- Quote from: Ipquarx on November 27, 2011, 11:30:08 AM ---The only way I can think of doing that is by uploading a link to the picture you want to upload, and then have the server download it from the URL.

--- End quote ---
The problem is that the pic is local on the computer of the user.
Kalphiter:
Ipquarx, didn't I say to stop posting in coding help?

You literally have no clue what you're talking about.


--- Quote from: Ipquarx on November 27, 2011, 11:30:08 AM ---The only way I can think of doing that is by uploading a link to the picture you want to upload, and then have the server download it from the URL.

--- End quote ---
So how will the link be created? Hmmm....?
Ipquarx:

--- Quote from: Kalphiter on November 27, 2011, 12:05:27 PM ---Ipquarx, didn't I say to stop posting in coding help?
--- End quote ---
And I'm the butt-hurt one?


--- Quote from: Kalphiter on November 27, 2011, 12:05:27 PM ---So how will the link be created? Hmmm....?
--- End quote ---
Can kalphiter come up with a better idea? Hmmm....?

There's probably a way to remotely upload image files to a image uploading site, there might be a API out there somewhere, who knows.

But why do you need to write BINARY data? Is that absolutely nessesary? There are much easier ways of sending data. If this is just about uploading pictures, then thats different, but otherwise, you can just send normal text, even a string of 1's and 0's if you want.
Kalphiter:

--- Quote from: Ipquarx on November 27, 2011, 12:16:00 PM ---There's probably a way to remotely upload image files to a image uploading site, there might be a API out there somewhere, who knows.

--- End quote ---
Nulls cannot be stored in a string and any non-text file most likely has a few.
echo(strlen("\x5D\x00"));
--- Quote from: DrenDran on November 27, 2011, 09:25:35 AM ---But the value 0 can't be written.

--- End quote ---
DontCare4Free:
Yes, it's a matter of pictures.
Navigation
Message Index
Next page
Previous page

Go to full version