?
Solved

store image into SQL server database?

Posted on 2001-06-12
5
Medium Priority
?
816 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 136 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 132 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 132 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

777 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