Sending binary image data: client to server & server to clients
by Paul Griffiths · in Torque Game Engine · 06/06/2006 (10:19 am) · 7 replies
Hi I'm building a web cam capture addon to torque which now works, screenshot here: pgmedia.game-host.org/Site/TMessenger/screenshot.php
Now i wish to send the captured image to the server. I understand torque networking has commands commandToClient & commandToServer but i wish to send binary image data.
Anyone have any ideas?
I could convert the data to hexadecimal then back again, anyone got any pointers or code?
If i did use commandToServer how much string data can i send?
Now i wish to send the captured image to the server. I understand torque networking has commands commandToClient & commandToServer but i wish to send binary image data.
Anyone have any ideas?
I could convert the data to hexadecimal then back again, anyone got any pointers or code?
If i did use commandToServer how much string data can i send?
#2
Does anyone have code for decimal to hex and hex to decimal?
06/06/2006 (10:31 am)
I could use multiple CommandToServer's and split up the images.Does anyone have code for decimal to hex and hex to decimal?
#3
i very much recommend finding a better way, tho.
for example saving the files to local disk
and firing off a batch or bash script in the background to FTP them up to the server.
your pgmedia.game-host.org link times out for me, by the way.
06/06/2006 (10:42 am)
You certainly could do that.i very much recommend finding a better way, tho.
for example saving the files to local disk
and firing off a batch or bash script in the background to FTP them up to the server.
your pgmedia.game-host.org link times out for me, by the way.
#4
So does anyone have code in c++ for decToHex and hexToDec?
06/06/2006 (10:46 am)
I found a script for decToHex but as torque script has no function to return the ASCII value of a character i won't be able to do hexToDec, So it's going to have to be in c++.So does anyone have code in c++ for decToHex and hexToDec?
#5
try: 62.31.81.31/
06/06/2006 (10:48 am)
>your pgmedia.game-host.org link times out for me, by the way.try: 62.31.81.31/
#7
06/06/2006 (11:36 am)
Guess my isp won't let me host a server :(
Associate Orion Elenzil
Real Life Plus
i would look into the other binary transfer threads and resources first.