Click here to Skip to main content
15,894,343 members
Home / Discussions / Database
   

Database

 
AnswerRe: Sql Function returning a tree structure Pin
Pete O'Hanlon2-May-07 22:34
mvePete O'Hanlon2-May-07 22:34 
GeneralRe: Sql Function returning a tree structure Pin
Colin Angus Mackay3-May-07 1:52
Colin Angus Mackay3-May-07 1:52 
GeneralRe: Sql Function returning a tree structure Pin
Pete O'Hanlon3-May-07 2:26
mvePete O'Hanlon3-May-07 2:26 
QuestionADOX Pin
myNameIsRon2-May-07 11:04
myNameIsRon2-May-07 11:04 
QuestionSave and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 6:41
MCAST762-May-07 6:41 
AnswerRe: Save and retrieve an image with SQL Server 2005 Pin
Giorgi Dalakishvili2-May-07 7:17
mentorGiorgi Dalakishvili2-May-07 7:17 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 16:49
MCAST762-May-07 16:49 
AnswerRe: Save and retrieve an image with SQL Server 2005 Pin
Michael Potter2-May-07 8:27
Michael Potter2-May-07 8:27 
Here is a section of an object I use to solve the issue. _bm is a Bitmap and _ms is a MemoryStream. You should be able handle it from here.

public void Load(object dbField)
{
     Clear();
     if (dbField != DBNull.Value)
     {
          byte[] buf = (byte[])dbField;
          _ms = new MemoryStream(buf);
          _bm = (Bitmap) Image.FromStream(_ms);
     }
}

public object Save()
{
     if (_bm == null)
     {
          return DBNull.Value;
     }
     else
     {
          MemoryStream ms = new MemoryStream();
          _bm.Save(ms,_bm.RawFormat);
          byte[] buf = ms.GetBuffer();
          ms.Close();
          return buf;
     }
}

GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 16:47
MCAST762-May-07 16:47 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
Giorgi Dalakishvili2-May-07 21:05
mentorGiorgi Dalakishvili2-May-07 21:05 
Questionsql string format Pin
hero19952-May-07 5:42
hero19952-May-07 5:42 
AnswerRe: sql string format Pin
Rob Graham2-May-07 9:17
Rob Graham2-May-07 9:17 
QuestionHow do you resume next? Pin
kayos5922-May-07 5:42
kayos5922-May-07 5:42 
AnswerRe: How do you resume next? Pin
Colin Angus Mackay2-May-07 6:06
Colin Angus Mackay2-May-07 6:06 
GeneralRe: How do you resume next? Pin
kayos5922-May-07 6:54
kayos5922-May-07 6:54 
QuestionSQL Query Problem Pin
rachitdamani2-May-07 1:14
rachitdamani2-May-07 1:14 
AnswerRe: SQL Query Problem Pin
gauthee2-May-07 1:48
gauthee2-May-07 1:48 
QuestionGranting Permissions: Under what authority? Pin
Brady Kelly1-May-07 23:56
Brady Kelly1-May-07 23:56 
AnswerRe: Granting Permissions: Under what authority? Pin
Colin Angus Mackay2-May-07 0:19
Colin Angus Mackay2-May-07 0:19 
GeneralRe: Granting Permissions: Under what authority? Pin
Brady Kelly2-May-07 1:20
Brady Kelly2-May-07 1:20 
Questionplease tell me the truth Pin
hero19951-May-07 23:36
hero19951-May-07 23:36 
AnswerRe: please tell me the truth Pin
gauthee8-May-07 0:10
gauthee8-May-07 0:10 
GeneralRe: please tell me the truth Pin
hero199523-May-07 18:59
hero199523-May-07 18:59 
Questionhow to strore video in database Pin
Rama krishna.M1-May-07 21:49
Rama krishna.M1-May-07 21:49 
AnswerRe: how to strore video in database Pin
Pete O'Hanlon1-May-07 22:38
mvePete O'Hanlon1-May-07 22:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.