Solved

store image into SQL server database?

Posted on 2001-06-12
5
813 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 143

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

749 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