The Daily Click ::. Forums ::. Klik Coding Help ::. MooSock Sending Binary...
 

Post Reply  Post Oekaki 
 

Posted By Message

gmatharu



Registered
  28/07/2005
Points
  12
26th October, 2007 at 15:10:41 -

I have made many attempts to send files over the internet.

The best shot I have at it is:
-> Loading the data into the binary object
-> Grabbing the first 3800 binary digits
-> converting it into HEX
-> sending it using MooClick.
-> converting it back to Binary
-> inserting it into the binary object and saving it!

It works flawlessy, of course after many attempts at it, because re-creating the file on the other side tends to get messy. Problem is, its too slow, data rate rarely hits 20kb/s and the application is practically eating the CPU with the whole converting, sending, process and I have to use Loops too just so that I get a decent send speed.

Does anyone know how MooSock's Send Binary works??
I can't seem to get it to send more than the first few lines of the file.

Any recommendations would be much appreciated.
Thanks!

 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
26th October, 2007 at 19:49:20 -

Send one line of the file at a time maybe? Someone made a moosock send data example once...

 
Image
http://bfollington.tumblr.com

gmatharu



Registered
  28/07/2005
Points
  12
27th October, 2007 at 14:03:39 -

Yea I was hoping to find an example...
Basically when you send the binary line.. it doesn't ask you WHAT line or NEXT line, it just asks for the filename of the binary you want to send? (Can it really ONLY send one line?).

Cheers Benothy.
Anyone have any ideas?? Thanks.

EDIT: I have been trying many attempts, but before anyone flames me for being a n00b at it, I think I may have got somewhere. If you send Binary Line and pick the source file. Then on the other end [On Recieved?]: Recieve Binary to Create and set the final output size (either yourself or by opening it in binary object and sending the total file size as a message), I think it actually works sucessfully. I will leave this here for anyone else who might run into this problem but if a mod wants to delete it they can.

On a final note, even though it recieves ALL THE BINARY into the file, If you simply retrieve the binary into a text box/rich edit box it will infact only show partial data, not sure why. Cheers all.

Image Edited by the Author.

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click