Hi Guys,
I am having problems displaying an image from the database, that alreday has
been uoploaded successfully.
The image loads in correctly, but by default it is displayed on the whole
page. I want it to bde displayed on some part of the page. I was able to do
that if I used img.ImageUrl, for images stored on my hard drive, but I want
to view it from anywhere my site is sccessed, hence I decided to get it
loaded directly from database.
How can I load the image on a section of the page e.g. in a div, rather than
on the whole page
<DIV style="OVERFLOW : scroll; WIDTH: 872px; HEIGHT: 299px"><img id="imgPage"
runat="server"> </DIV>
Please help...
Thanks,
I..A 3 1356
The standard solution is to a have a special web page, called, for example,
GetImage.aspx. Your image url will point to the page:
ImageUrl="GetIm age.aspx?id=myI mageId"
The page will find the image in the database according to id and stream it
down to the client in the response stream.
Eliyahu
"Irfan Akram" <Ir********@dis cussions.micros oft.com> wrote in message
news:96******** *************** ***********@mic rosoft.com... Hi Guys,
I am having problems displaying an image from the database, that alreday
has been uoploaded successfully.
The image loads in correctly, but by default it is displayed on the whole page. I want it to bde displayed on some part of the page. I was able to
do that if I used img.ImageUrl, for images stored on my hard drive, but I
want to view it from anywhere my site is sccessed, hence I decided to get it loaded directly from database.
How can I load the image on a section of the page e.g. in a div, rather
than on the whole page
<DIV style="OVERFLOW : scroll; WIDTH: 872px; HEIGHT: 299px"><img
id="imgPage" runat="server"> </DIV>
Please help...
Thanks,
I..A
Search the MSDN for their DynamicImage control. It can render images based
on URL, file or a byte[] array.
"Irfan Akram" <Ir********@dis cussions.micros oft.com> wrote in message
news:96******** *************** ***********@mic rosoft.com... Hi Guys,
I am having problems displaying an image from the database, that alreday has been uoploaded successfully.
The image loads in correctly, but by default it is displayed on the whole page. I want it to bde displayed on some part of the page. I was able to do that if I used img.ImageUrl, for images stored on my hard drive, but I want to view it from anywhere my site is sccessed, hence I decided to get it loaded directly from database.
How can I load the image on a section of the page e.g. in a div, rather than on the whole page
<DIV style="OVERFLOW : scroll; WIDTH: 872px; HEIGHT: 299px"><img id="imgPage" runat="server"> </DIV>
Please help...
Thanks,
I..A
You need a separate page to display the image.
Here's an example: http://SteveOrr.net/articles/ImproveYourImages.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Irfan Akram" <Ir********@dis cussions.micros oft.com> wrote in message
news:96******** *************** ***********@mic rosoft.com... Hi Guys,
I am having problems displaying an image from the database, that alreday has been uoploaded successfully.
The image loads in correctly, but by default it is displayed on the whole page. I want it to bde displayed on some part of the page. I was able to do that if I used img.ImageUrl, for images stored on my hard drive, but I want to view it from anywhere my site is sccessed, hence I decided to get it loaded directly from database.
How can I load the image on a section of the page e.g. in a div, rather than on the whole page
<DIV style="OVERFLOW : scroll; WIDTH: 872px; HEIGHT: 299px"><img id="imgPage" runat="server"> </DIV>
Please help...
Thanks,
I..A This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: GazK |
last post by:
I have an image viewing page which resizes an image to a sensible sizebefore
displaying. The user should then be able to choose "25% larger" or smaller
and the resized image display. The problem I am getting with the code below
is that whatever the POST variable value (and I have tested the value
changes correctly), the line marked with *** executes, ie the image gets
smaller. Am I missing some obvious subtlety with IF statements?
Also,...
|
by: Rob Parker |
last post by:
I posted this (with a different subjetc line) in the ms.public.access.forms
newsgroup a few days ago, but haven't had a single response there. I'm
hoping maybe someone here can help.
Using Access 2002:
I have downloaded a tutorial database, which has a form containing a bound
object frame to display a picture. The picture field in the underlying
table has an OLE Object datatype, and when a picture is inserted (either
directly into the...
|
by: Rob Parker |
last post by:
I posted this with a different subject line (in two posts - I added
additional info in the second) in this newsgroup a few days ago, but
haven't had a single response. Hopefully, that was because I posted
at the weekend, and the experts were all having a well-earned rest and
missed it first time around. I'm hoping someone here can help - I've
had no joy in other avenues. Now to the problem:
Using Access 2002:
I have downloaded a...
|
by: Jeronimo Bertran |
last post by:
Hello,
I am using a rendering aspx page to display a database image on an Image
control. When the database record is retrieved, I am saving the bitmap
to a session variable for the rendering aspx to load. Here is the code
on the rendering page:
CODE FOR ImageForm.aspx
private void Page_Load(object sender, System.EventArgs e)
|
by: comp.lang.php |
last post by:
'll try to explain this as clearly as possible, sorry if it's unclear.
You have in your directory /foo 42 images
You have in your database metadata for 30 out of those 42 images
You have to display all 42 images in the /foo directory whether they
have database metadata or not.
If any of the 42 images have metadata, you must display the metadata,
| |
by: keerthisreenu |
last post by:
hai to all...!!
iam working with Ms Access 2000.
iam saving an image in the database.
After that i want to retrive the same image from database and displaying it in the picture box.
but its not working. why it is happening?
please help me.
iam sending the code.
when button1 clicks it store in database.
when button2 clicks it should display in picturebox.
|
by: ashraf02 |
last post by:
i used a code from a website that allows you to display images. however everything works fine from storing the image to the database but it does not display the image.
the following code is the one i have used.
Storing the images:
<HTML>
<HEAD><TITLE>Store binary data into SQL Database</TITLE></HEAD>
<BODY>
|
by: shahidrasul |
last post by:
i display a pic on picture box and then i want to display another pic after some seconds
but problem is that first image is not displaying only display 2nd image
1... display first picture from database such as
pbThumbImage.Image = new Bitmap(new MemoryStream(objEmployee.Picture));
2... and then get the reference of current main thread
Thread main = Thread.CurrentThread;
Thread.Sleep(5000);
|
by: vikidigi |
last post by:
PLz Help
i have some Images in DataBase in Blob field
but images are displayed with a Cross (X) not the actual image
MainPage.php//code
# <?php
# $con = mysql_connect("localhost","root","");
# if (!$con)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |