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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:08:11+00:00 2026-06-08T18:08:11+00:00

I have one web application, having one table in oracle10g having following structure: Column

  • 0

I have one web application, having one table in oracle10g having following structure:

Column Name       DataType
UserImage         long   

My problem is that how should I display the IMAGE on my aspx page which is stored in long format?

If data type is BLOB or CLOB then it could be easier one, but it’s stored in long.

I could not change the datatype since this is third party DB.

Please suggest me how could I achieve this. The solution could be either using Oracle or C#, I’m fine with both.

Thanks in advance.

  • 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-08T18:08:12+00:00Added an answer on June 8, 2026 at 6:08 pm

    The “chunk” characters you have posted seem to be a TIFF image. That gives an idea how the images are stored. In fact, the binary image data seems to be stored as character data. That’s certainly completely unsupported and very fragile. I’d recommend converting it as soon as possible.

    In the mean time, I can propose two ways of retrieving the data so I cannot guarantee that either one works.

    But approaches are susceptible to characters sets: If two or more character sets are involved, your data will be converted and thereby destroyed. And both are susceptible to the maximum length of certain data types.

    Approach 1:

    Try to go via the RAW data type and retrieve it as a byte array. It’s certainly limited to 32’000 characters, maybe even less.

    SELECT UTL_RAW.CAST_TO_RAW(UserImage) FROM UNNAMED_TABLE WHERE ...
    

    On the C# side, you should get an OracleBinary or byte[] instance.

    Approach 2:

    Try to retrieve it as a string. Then convert the string into a byte array using the original encoding (Encoding.GetBytes. With enough luck, the original data can be restored.

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

Sidebar

Related Questions

I have web application Project having RPC call. one RPC async is working fine.
I am facing one problem. I have to create asp.net 4.0 web application which
I have a web application having three pages, one is login page, second is
I have one web application which I have been working for some time.I am
I have one legacy web application based on struts2 (primarily using annotation). While debugging
I have a one page web application, which means alot of javascript. External scripts
Do you have one solution with the web application project, class libraries, database project
I've creating one ASP web application, in that application one form have to update
I have one question; In my ASP.NET MVC web application have to do certain
I have a requirement to pass credentials from one Microsoft .NET Web Application to

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.