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

  • Home
  • SEARCH
  • 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 8350081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:12:06+00:00 2026-06-09T08:12:06+00:00

SDO REST API – The issue is that when I upload the file, it

  • 0

SDO REST API – The issue is that when I upload the file, it has no format and it looks like this: 98A9799C-CFB1-423B-A4AD-40609282F861 (2.7 MB) DELETE <— this file needs to be picture.jpg

The file is simply picture.jpg

public string POST(string URI, string file)
        {
            NetworkCredential credentials = new NetworkCredential();
            credentials.UserName = AppVars.Username;
            credentials.Password = AppVars.Password;

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URI);
            request.Credentials = credentials;
            request.Method = WebRequestMethods.Http.Post;
            request.ContentType = "application/x-www-form-urlencoded";
            //I have also tried request.ContentType = "image/jpeg"; and ran into the same issue.

            byte[] bytes = File.ReadAllBytes(file);
            Stream os = null;
            try
            { 
                request.ContentLength = bytes.Length;   
                os = request.GetRequestStream();
                os.Write(bytes, 0, bytes.Length);         
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                if (os != null)
                {
                    os.Close();
                }
            }
            try
            { 
                WebResponse requestResponse = request.GetResponse();
                if (requestResponse == null)
                { return null; }
                StreamReader sr = new StreamReader(requestResponse.GetResponseStream());
                return sr.ReadToEnd().Trim();
            }
            catch (WebException ex)
            {
                MessageBox.Show(ex.Message);
            }
            return null;
        }
  • 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-06-09T08:12:08+00:00Added an answer on June 9, 2026 at 8:12 am

    Problem solved. It was a cache issue. I cleared my browser cache and I was able to view the image online.

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

Sidebar

Related Questions

What % of Shared Hosting Package Provide SDO XML DAS Extension installed. or has
99% of what REST API's do is serve as a controlled interface between client
What Windows kernel API(s) do I use to obtain the base file name of
What Windows kernel API(s) do I use to obtain the base file name of
I've a SDO_GEOMETRY column containing quite large multi polygons , defined like this: INSERT
I am encountering an issue compiling a source file with a special character in
Let's say I have this blob of code that's made to be one long-running
What kind of date format is this and how can I get this formatted
I think I read somewhere that cpu's do some floating point computations in 50
I'm trying to form a query that returns a list of entities within 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.