Hi there, I am creating a small program to send a picture using winsock.
So far the app that is sending the data, as far as I can see is working fine. I am storing the RGB value of each pixel in a 2d array as follows:

VB Code:
  1. width = picture1.width
  2. height = picture1.height
  3. dim picArray(width, height) as long
  4. for x = 0 to width
  5. [INDENT]for y = 0 to height[/INDENT]
  6. [INDENT]picArray(x,y), picture1.point(x,y)[/INDENT]
  7. [INDENT]sck.senddata picArray(x,y)[/INDENT]
  8. [INDENT]next[/INDENT]
  9. next

If I run a similar loop in the same program to display the data from the array using PSet, the picture displays fine, however when I send the data to the other program it only recieves upto x = 4, the rest of the array has been assigned an RGB value of the same value when x = 4 and the last value of y.

I have tried to send it as a string with a comma as a delimiter, but again it only sends data upto x = 4.

I was thinking maybe there is a limit on how big the data can be??

Any suggestion would be appreciated

Regards