i m facing a problem in which when i send a small size byte array
byte[] s = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
then it will received and inserted in database successfully but when it comes to a bytes array of image converted to a bytes[] then i will show an exception
"The request failed with HTTP status 404: Not Found."
it does not show that "maximum limit exceed" or something like that. what should i do? here is the screen shot
it send the byte array that is commented but the array in arguments is the bitmap converted to byte array.
- Edited
Here is the code of receiving end in web service
[WebMethod]
public bool TakeScreenShotResponseBack(string ip, byte[] screenShot)
{
dbOpts = new DatabaseOperation();
if (dbOpts.InsertBitmapResponse(ip, screenShot))
return true;
else
return false;
}
and here is the sending side code
public bool ScreenShotResponse(string ip, byte[] ss)
{
response = new MyService.MasterWebService();
try
{
//byte[] s = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
if (response.TakeScreenShotResponseBack(ip, ss))
return true;
else
return false;
}
catch
{
return false;
}
}