Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Storing Images


Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2002, 07:42 PM
Bhaskara Varma Bhaskara Varma is offline
Freshman
 
Join Date: Jan 2002
Location: India
Posts: 44
Default Storing Images


hai everybody,
I want to know how to store jpeg and mpeg files in the sqlserver database. Which data type we need to use in database. And how to store the data in that data type. I saw that image datatype is there in sqlserver. But i don't know how to store the image files data in that datatype.
I want to retrieve those files in the visual basic application. How to do that . Please help.
Thanks in advance.
Reply With Quote
  #2  
Old 02-26-2002, 08:39 PM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

Yes, you would use the Image datatype field.
Download and look at the tutorial/project in this thread.
Even though it is for Access, the GetChunk and AppendChunk
methods work exactly the same for SQL Server.
__________________
Posting Guidelines
Reply With Quote
  #3  
Old 02-26-2002, 10:28 PM
Bhaskara Varma Bhaskara Varma is offline
Freshman
 
Join Date: Jan 2002
Location: India
Posts: 44
Default Thank you very much

Thank you Very much Thinker,
Really it is a good program. I am very happy. The code exactly satisfy my need. Thank you once again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->