I am using socket programming for sending images java to client . is it a good method? what are the methods are availble for sending image ?
Type: Posts; User: ashi123
I am using socket programming for sending images java to client . is it a good method? what are the methods are availble for sending image ?
i have debug this application oos.write(buffer); this line makes the error i am using socket programming from connecting java and php.. this program send the image to php.
full code
/*...
FileInputStream fis = new FileInputStream("/Users/ashida/test/Cross.jpg");
byte[] buffer = new byte[fis.available()];
fis.read(buffer);
...