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 8231655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:34:12+00:00 2026-06-07T17:34:12+00:00

I have the following code to upload the image: FileUpload uniformItemImageFileUpload = uniformItemsGrid.FooterRow.FindControl(UniformImageInsert) as

  • 0

I have the following code to upload the image:

FileUpload uniformItemImageFileUpload = uniformItemsGrid.FooterRow.FindControl("UniformImageInsert") as FileUpload;
byte[] itemBytes = uniformItemImageFileUpload.FileBytes;

And the following to bind to the database:

OracleParameter itemImageParameter = new OracleParameter("itemImage", OracleDbType.Blob, 4000);
itemImageParameter.Value = itemImageBytes;
oraCommand.Parameters.Add(itemImageParameter);

I have a problem, that when the image is uploaded through this mechanism, it does not store all the binary data of that image, but it only stores part of it if it is an image greater then 4kb. However, the problem is not the storage, since the 4000 size of the blob can fit larger files, in fact if I upload it directly through the SQL Navigator it can store it fully, with no problems, however, when trying to upload the same image through the code, it does not store all of it.

Has any one encountered this problem? how can it be fixed?

  • 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-07T17:34:13+00:00Added an answer on June 7, 2026 at 5:34 pm

    You need to specify the size of the Blob to the OracleParameter, i.e.

    OracleParameter itemImageParameter = new OracleParameter("itemImage", OracleDbType.Blob, itemBytes.Length);
    itemImageParameter.Value = itemImageBytes;
    oraCommand.Parameters.Add(itemImageParameter);
    

    Hopefully that will work 🙂

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

Sidebar

Related Questions

I have the following model(codeigniter) code to upload image and thumbnail. However the result
I have the following html code to upload an image: <input type=file name=before size=40>
I have following client code to upload image from phone $(#placeorder).click( function() { if
I have the following code which is used to upload large files (~6MB) to
I have the following PHP code // Check if the upload is setted if
i have upload a model with the following model loader in my Opengles code
I have following code for loading image from url in xml parsing endElement method
I have pulled last uploaded image using following code class categoryForm(forms.Form): name = forms.CharField(widget=forms.TextInput(attrs={'class':'box'}),max_length=32,label='Category',required=True)
I have upload the video on facebook using following code Help From : https://github.com/zoul/facebook-ios-sdk/
I have the following code which uploads images to a rackspace cdn account. error_reporting(E_ALL);

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.