sending a bineric file like a jpg file over network

Posted By: pjotr987

sending a bineric file like a jpg file over network - 12/16/12 00:09

hi guys,
can someone tell me, wheather its possible to send a bineric file over the 3DGS? if yes, then how to make this?

thanks in advance
Posted By: Uhrwerk

Re: sending a bineric file like a jpg file over network - 12/16/12 00:25

You can send arbitray data from a client to a server or vice versa with the
send_data_to instruction.

http://www.conitec.net/beta/send_data.htm

After receiving the data you just have to write it to a file.
Posted By: pjotr987

Re: sending a bineric file like a jpg file over network - 12/16/12 00:33

thanks for reply.
this function i saw and thiought its the right thing, but my problem is the big HOW. obviously i have to read the file, then send its name and then the content. but how to get this done?
and then how to write the buffer it on the other side in a file?

would be thankful for any code piece, that can give me an idea how to do it.

thanks
Posted By: Uhrwerk

Re: sending a bineric file like a jpg file over network - 12/16/12 01:09

There is even an example on the manual page I linked to in my post above. Please try to achieve it for yourself. I'll try to help you out on any open questions and difficulties you might experience.
Posted By: pjotr987

Re: sending a bineric file like a jpg file over network - 12/16/12 10:35

Thanks Uhrwerk for ur kind offer. i think today i ll try to work on it.

have a nice day
© 2024 lite-C Forums