Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
I want to pass the byte array into insert query but I am not using the parameter. I am directly passing values into insert query.
I am getting the following error:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
The request failed with HTTP status 400: Bad Request.
my code
object str;
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
str = enc.GetString(image);
objGL.GetSelectByQuery("update empmast set photo=convert(varbinary(MAX),'" + str + "') where srno='" + txtSRNO.Text + "'");
Any help is greatly appreciated.
Posted 18-May-11 0:15am
Edited 18-May-11 0:32am
Slacker007 at 18-May-11 6:30am
Edited for spelling, grammar, and readability.
Keith Barrow at 18-May-11 11:08am
Can you get the request you client makes to the server you can download and use Fiddler to do this.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sarvesh Kumar Gupta 228
1 CHill60 200
2 DamithSL 153
3 OriginalGriff 138
4 Sergey Alexandrovich Kryukov 133

Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 5 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid