just because I (mistakenly, as is supposed to be a pic) use the file names I read somewhere else, that does not mean that I "copy" someone else's work. When I'm here, I use different names for files, so what?
¿did you even read your own code? |
That's another rude comment. I do ask for help/suggestions here and implement it in my own code, so of course I read it. Is embarrassing that I just have to answer such a silly question.
¿did you receiver expect two things? |
yes it does. For each 'send' command there is a 'receive' one on the other side.
¿why do you want so much to send the size if sending just the picture works? |
so much? As I already mentioned, the first messsage is supposed to send the size (int) of the image I wanna send, so the receiver on the other side can use that same integer as a parameter to receive the picture. An integer and a picture is not "much" like you are claiming.
so sending the picture works, ¿what are we doing then? |
Sending picture works only if on the other side I manually write the picture size in the receive command as a parameter. But what I wanna do is to send the parameter first via socket, so the receiver can use directly that.
With this being said: beware that I don't have as much programming experience as most of you here, that is why I ask what I ask. Therefore if you have the potential and the willingness to give me some constructive guidance, I'll be more than happy to consider your suggestions or answer any clarifications you may have due to my sometimes messy code.
But if you are here to spread insulting and condescending remarks, I would appreciate you staying away from my posts instead of coming here and displaying rudeness. That doesn't help anyone.