473,698 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to write a code to retrieve the image (DataType) in the mssql

1 New Member
Do you know how to write a code to retrieve the image (DataType) in the mssql?
The image file is save in the desktop application, and now i need to do a web to display a image from mssql.
Did anyone know that?
TQ
Oct 18 '07 #1
3 1973
ak1dnar
1,584 Recognized Expert Top Contributor
The image file is save in the desktop application
Could you please explain it little bit clearly. from where you want to read the images. ?
Oct 18 '07 #2
Motoma
3,237 Recognized Expert Specialist
Do you know how to write a code to retrieve the image (DataType) in the mssql?
The image file is save in the desktop application, and now i need to do a web to display a image from mssql.
Did anyone know that?
TQ
I believe you will just run a header() call for the type of image it is, and then echo the data.
Oct 18 '07 #3
pbmods
5,821 Recognized Expert Expert
Heya, TQ. Welcome to TSDN!

To determine the type of an image file, use getimagesize() (I know it sounds kinda silly, but read about halfway down the page).
Oct 18 '07 #4

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

Similar topics

2
1880
by: Marwin | last post by:
Hi all, I have a database with 40GB of binary objects stored in image columns in two tables. Our database server is also used for another 15 databases. SQL Server caches the image-column, causing the cache-hit-ratio to dramatically decrease, since fetching a couple of binaries from the image-column uses up the
2
3517
by: kabin selvam | last post by:
Hi, my scenario is like this, I have my document (word.or excel or pdf) stored a s a binary value(image datatype) in database, I need it to convert back into thedocument and save it as the file in my local system, Is there any way of retrieving the image datatype and store it as a file in our local system in c#
5
29127
by: Jason Huang | last post by:
Hi, I have a PassWord column in SQL Server 2000 which is image datatype. How do I transfer or decode/encode text to image datatype so that my SQL Server recongnize it? Any help will be appreciated. Jason
4
5039
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a GridView that needs to be dynamically designed, depending on what collection of fields our uses want to edit for their product data. We have 400+ fields of information per product so they're selecting a subset of those fields to edit.
5
25563
by: Ken | last post by:
I'm trying to run a loop to capture column property information from a table in my datasource. Can anybody see where this is going wrong? Dim tbl As New DataTable Dim col As DataColumn Dim x As Integer Dim colName(99) As String Dim colType(99) As String cn.Open() tbl = cn.GetSchema("Orders") 'Orders is a table in the
1
1339
mafaisal
by: mafaisal | last post by:
Hello Experts I am Using vb.net2005 And sql2005 See The Attachment This is Error When i retrieve image from Db I store Picture as datatype image Please See The Attachment
0
1103
by: pickforc | last post by:
I'm relatively new to MSSQL and finding it difficult to find information on how to search for datatypes. I have several MSSQL DB's I'm using as datasources for reporting and need to find out which are using the timestamp Datatype. Does anyone know how I can search all DB's simultaneously retrieving information about which contain the timestamp Datatype and it's location?
10
7423
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0, and need to know how to save and use an image that is stored in an SQL Server image datatype. How can I do this using ASP.NET? Thanks.
1
6477
by: bipinskulkarni | last post by:
Is there any datatype in MYSQL which replaces XML Datatype? XML datatype i used in stored procedure for bulk input.
0
8674
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, 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...
0
8604
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,...
0
9157
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, 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...
0
9028
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 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...
1
8895
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,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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 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.