?
Solved

store image into SQL server database?

Posted on 2001-06-12
5
Medium Priority
?
821 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
4 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

850 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