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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:32:38+00:00 2026-05-15T17:32:38+00:00

I am using asp.net 2.0 and C#. I have a adrotator control, whcih I

  • 0

I am using asp.net 2.0 and C#.

I have a adrotator control, whcih I am binding to the database which has the three fields.
AlternateText, ImageUrl and NavigateUrl.

Now, this works fine, as per the expectation. My question is this that the ImageUrl in the table contains a URL like http://www.xyz.com/abc.jpg
but I want to store image in a database and then bind the image to the adrotator.

please help.
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-05-15T17:32:39+00:00Added an answer on May 15, 2026 at 5:32 pm

    It sounds like you want to put the data of the image into a image field in the database. This can be achieved by reading the image from the web with a HttpWebRequest. You can then get the HttpWebResponse with :

    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    

    Then read the bytes from the response stream (See this SO question Creating a byte array from a stream) . Then insert this byte[] into your database.

    Then, you could use a custom handler to read the image from the database and output it as image/jpeg (or whatever mimetype you need).

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

Sidebar

Related Questions

I'm using ASP.NET MVC and have a model which has an image (byte array)
Using ASP.Net, I have a server control for which i would like to add
I'm using ASP.NET and I have a string of HTML in the database. I
Using asp.net 3.5 Gridview control, visual studio 2008. I have played with all the
I am using C#,ASP.NET I have a Gridview for which I have provided Sorting,
Using ASP.Net MVC 1.0 I have a form with some input control on it.
I have a list of drop down lists populated form a database(using ASP.NET). These
We are going to develope one web application using Asp.Net which can have millions
sending mail along with embedded image using asp.net I have already used following but
Using ASP.Net MVC on my Site.Master I have: <head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server />

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.