473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unable to View the Database saved image in IE 6 and higher version

Hi,

We unable to view the Data base Saved image in IE 6 and higher version .It's shown only red crros mark.

We saved the drawing gif image in to sql server, which is developed in VB.After that we fetch and display into IE browser.Everything ok in IE 5 and IE 6 some version but in IE 6 higher version it not working.It's shown only red crros mark.

here the code we are using
-----------
Expand|Select|Wrap|Line Numbers
  1. <IMG id='IMG2' src='fetch?MrdNo=2153861' runat='server'/>
---------
Expand|Select|Wrap|Line Numbers
  1. Dim myCommand As New SqlCommand(strQueryString.ToString, myConnection)
  2.  
  3.         Try
  4.             myConnection.Open()
  5.  
  6.             Dim myDataReader As SqlDataReader
  7.             myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
  8.  
  9.             Do While (myDataReader.Read())
  10.  
  11.                 Response.ContentType = "image/gif"
  12.                 Response.BinaryWrite(myDataReader.Item("IMAGECONTENT"))
  13.  
  14.             Loop

thanks in advance

By
shan
Mar 3 '11 #1
0 877

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: chrispragash | last post by:
Hello Everybody, I have a server control that stores an image in the database as an image datatype. I would like to display this image (may be in an image control) along with other text in a...
6
by: mike w. | last post by:
I want to create an application using VB.Net to have something like windows explorer to view thumbnails of image files in the directories. Is there a control or soemthing to do this? thanks ...
3
by: teedilo | last post by:
Our MS SQL (SQL Server 2000) DBA has database privileges locked down pretty tightly. We end users/developers do not have administrator privileges for most databases. That arrangement has worked...
4
by: snow | last post by:
Hi all, I have a VB.net program installed in a xp home with sp2,after installation, get error "Cannot open a database from a previous version of your application. The database is a 97 Access...
0
by: bananularstyle | last post by:
Hi everyone, This is an issue I have been picking away at for the past two weeks and am running short of ideas. :-\ I am writing an ASP page that allows a user to open/save a tif image stored on...
3
by: shaileshkumar | last post by:
i have successfully stored an image using BLOB in a database. But the problem is whenever iam trying to retrive the image using a servlet, iam getting an image with red color cross mark ...
5
by: muriwai | last post by:
Hi, I have a C# assembly project under Visual Stuio 2008 Pro on Windows Server 2008. I converted the project from VS 2005. The project references COM->Microsoft CDO for Windows 2000 Library...
7
freddieMaize
by: freddieMaize | last post by:
Hi, my first day in designing. Since I’m not a very good designer I tried copying a template from the net. Below is my problem. I saved the below web page,...
4
by: lisa007 | last post by:
Hi i have this form which meant to upload the create an album but some how doesnt not work can some1 help please i use 3 files here they are addalbum.php is where is not working the other files are...
1
by: Shane van Heerden | last post by:
Hi, Hope you can assist... My table has two OLE/BLOB fields. 1 x OLE (Photo) and 1 x OLE (Signature). 1. With WebCam, I save my image - "Works Fine": Private Sub Capture_Click()...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.