Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5952371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:40:20+00:00 2026-05-22T17:40:20+00:00

I have an issue.. I am passing the image as the parameter to my

  • 0

I have an issue..

I am passing the image as the parameter to my webservices that is being build on .NET, but it returns me the error from the webservices. I am not been able to understand y this is happening.

This is my function in Android thru which I call the webservices.

 public ArrayList<String> HttpClient(String oid,String Base64)
 {

  SoapObject Request=new SoapObject(NAMESPACE,METHOD_NAME);
        Request.addProperty("oid",oid);
        Request.addProperty("base64",Base64.replaceAll("/","#"));

        SoapSerializationEnvelope soapEnvelope=new SoapSerializationEnvelope(SoapEnvelope.VER11);
        soapEnvelope.dotNet=true;
        soapEnvelope.setOutputSoapObject(Request);

        AndroidHttpTransport aht=new AndroidHttpTransport(URL);
        try
        {

         aht.call(SOAP_ACTION,soapEnvelope);
         resultString = (SoapPrimitive) soapEnvelope.getResponse();

     System.out.println(resultString.toString());

        }

And this is my function in webservices that is in C#.NET

[WebMethod]
    public void UpdateImage2Database_FromBase64String(string base64, int oid)
    {
        try
        {

            SqlConnection conn = new SqlConnection(cConnectionString);
            try
            {
                conn.Open();
                //SqlCommand cmd = new SqlCommand("Update CCOD_ORDERHDR" +
                //                                 " SET FLD_ORDERHDR_IMAGECAPTURE=@FLD_ORDERHDR_IMAGECAPTURE" +
                //                                 " Where FLD_ORDERHDR_ID=" + oid,
                //                                 conn);

                SqlCommand cmd = new SqlCommand("Update CCOD_ORDERHDR" +
                                                 " SET FLD_ORDERHDR_IMAGECAPTURE='" + base64 + "' Where FLD_ORDERHDR_ID=" + oid,
                                                 conn);
                //cmd.Parameters.Add("@FLD_ORDERHDR_IMAGECAPTURE", image);
                cmd.ExecuteNonQuery();
            }
            finally
            {
                conn.Close();
            }

        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

datatype in my database is text.

please help me.

Any suggestions will be accepted.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:40:21+00:00Added an answer on May 22, 2026 at 5:40 pm

    I got the answer the issue was there is the low space on the server, that is why it is creating the problem and giving me the exception in Android services. Now it works fine.

    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I have an issue that is driving me a bit nuts: Using a UserProfileManager
We have an issue using the PEAR libraries on Windows from PHP . Pear
IE 8 is not refreshing a popup window that shows an image with some
I have an issue passing a null value to NamedParameterJdbcTemplate using MapSqlParameterSource of the
I seem to have an issue passing the xml i am reading to a
My issue is passing a PHP variable from my custom module to jQuery. I
I have developed an application that fetches the feed from a sever, displays the
I have an image gallery which pulls in random images from the folder images/flip_images/.
I have an issue that's pretty baffling: Main report contains subreport Subreport uses a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.