?
Solved

Images in database

Posted on 2005-04-26
7
Medium Priority
?
244 Views
Last Modified: 2010-03-19
hi

I have a database which i have uploaded some images to!  When I look at the data in the image column which uses the data type "image", I see lots of bits!  I am assuming this is a reference to the image and that the database does not hold the actual image!.

If this true, if yes, where do the images get saved on the server hard drive, so I can see the image file size?

Thanks
Urgent
0
Comment
Question by:narmi2
  • 4
  • 3
7 Comments
 
LVL 28

Expert Comment

by:rafrancisco
ID: 13867362
The images that you uploaded to the database is actually stored inside the table and not just a reference to where the image is.
0
 
LVL 28

Expert Comment

by:rafrancisco
ID: 13867379
Here what I got from Books Online:

"Columns of image data can be used to store variable-length binary data exceeding 8 KB, such as Microsoft Word documents, Microsoft Excel spreadsheets, and images that include bitmaps, Graphics Interchange Format (GIF), and Joint Photographic Experts Group (JPEG) files."
0
 
LVL 1

Author Comment

by:narmi2
ID: 13867418
I dont understand.  this is what is in one of the image columns

0xFFD8FFE000104A46494600010101004800480000FFDB004300140E0E120F0D14121012171514181E32211F1C1C1E3D2C2E243249404C4B47404645505A736250556D5645466488656D777B8182814E608D978C7D96737E817CFFDB0043011517171E1A1E3B21213B7C5346537C7C7C7C7C7C7C7C7C7C7C7C7C7C7C7C7C7C7C

The image size was 5k to start off with.  But that data in the colums is less than 1k???
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 28

Accepted Solution

by:
rafrancisco earned 2000 total points
ID: 13867479
As far as I know, what you are seeing is just a pointer to where the image is actually saved in SQL Server's data pages.
0
 
LVL 1

Author Comment

by:narmi2
ID: 13867516
I have read that TEXTCOPY.EXE allows you to read/write the images from sql server!  Does this mean that I can extract the images from the server using this tool?
0
 
LVL 28

Expert Comment

by:rafrancisco
ID: 13867539
Sorry but I am not familiar with that application.  If they claim that they can do it, then I guess you will be able to do it.
0
 
LVL 1

Author Comment

by:narmi2
ID: 13867567
I think its a utility which comes with sql server 2000!

Thanks for the help anyway!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question