Solved

store image into SQL server database?

Posted on 2001-06-12
5
806 Views
Last Modified: 2010-05-18
hi there !

I want to use VB to store image, video clip files to SQL server database. I know SQL Server has image column, but what should I do now?


TIA

minh
0
Comment
Question by:minhdb
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 34 total points
ID: 6180772
I suggest that you look up the AppendChunk and GetChunk methods of the ADO fields objects.

Cheers
0
 
LVL 8

Assisted Solution

by:chigrik
chigrik earned 33 total points
ID: 6181315
To put binary data into image datatype, you can use textcopy utility.
Read about "Copy text or image into or out of SQL Server"
http://www.swynk.com/friends/achigrik/Textcopy.asp

You can also use AppendChunk() and GetChunk() method.
Location: SQL Server Books Online
Title:    Using Long Data Types

Hope this helps
0
 
LVL 5

Assisted Solution

by:dtomyn
dtomyn earned 33 total points
ID: 6181455
Actually, if you are using ADO 2.5 or 2.6 you can use the Stream Object.  See: http://www.sqlmag.com/Articles/Index.cfm?ArticleID=20460 for a good explanation
or another good source is planetsourcecode, ex. http://www.planetsourcecode.com/xq/ASP/txtCodeId.11531/lngWId.1/qx/vb/scripts/ShowCode.htm
0
 

Expert Comment

by:CleanupPing
ID: 9282238
minhdb:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now