Click here to Skip to main content
15,907,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows service using C# Pin
PIEBALDconsult18-Mar-08 6:14
mvePIEBALDconsult18-Mar-08 6:14 
NewsWhirlwind 1 -- Generics now posted on Channel 9 Pin
brucedkyle17-Mar-08 9:38
brucedkyle17-Mar-08 9:38 
GeneralRe: Whirlwind 1 -- Generics now posted on Channel 9 Pin
pmarfleet17-Mar-08 10:42
pmarfleet17-Mar-08 10:42 
GeneralRe: Whirlwind 1 -- Generics now posted on Channel 9 Pin
Not Active17-Mar-08 11:25
mentorNot Active17-Mar-08 11:25 
QuestionDebug into unmanage code?? Pin
Small Rat17-Mar-08 9:13
Small Rat17-Mar-08 9:13 
GeneralRe: Debug into unmanage code?? Pin
led mike17-Mar-08 9:16
led mike17-Mar-08 9:16 
GeneralRe: Debug into unmanage code?? Pin
Small Rat17-Mar-08 9:20
Small Rat17-Mar-08 9:20 
QuestionSaving Bitmap File To MS Access 2003 Problem Pin
cyberE-gor17-Mar-08 8:31
cyberE-gor17-Mar-08 8:31 
Hi,

Problem:
I'm using C# 2005. The data type of the bitmap file saved to database is "long binary data". It should be "OLE Object".

Source Code:
Bitmap myBitmap = new Bitmap(@"c:\Picture1.bmp");<br />
OleDbConnection conn = new OleDbConnection("<<My Connection String>>");<br />
conn.Open();<br />
string sql = "UPDATE Table1 SET fldOLE = @fldOLE WHERE fldID = 5";<br />
OleDbCommand command = new OleDbCommand(sql, conn);<br />
command.Parameters.Add(new OleDbParameter("@fldOLE", myBitmap));<br />
int rowsAffected = command.ExecuteNonQuery();



Question:
How can I save Bitmap to database with data type "OLE Object"?

Laugh | :laugh:

Thanks in advance

GeneralRe: Saving Bitmap File To MS Access 2003 Problem Pin
Christian Graus17-Mar-08 9:04
protectorChristian Graus17-Mar-08 9:04 
QuestionHow to call static method Pin
Exelioindia17-Mar-08 8:29
Exelioindia17-Mar-08 8:29 
AnswerRe: How to call static method Pin
User 665817-Mar-08 8:41
User 665817-Mar-08 8:41 
AnswerRe: How to call static method Pin
Christian Graus17-Mar-08 9:06
protectorChristian Graus17-Mar-08 9:06 
GeneralRe: How to call static method Pin
Exelioindia17-Mar-08 9:30
Exelioindia17-Mar-08 9:30 
GeneralEstablishing marks points of start and end on a video to save a subclip Pin
xraziel17-Mar-08 8:17
xraziel17-Mar-08 8:17 
GeneralRe: Establishing marks points of start and end on a video to save a subclip Pin
Christian Graus17-Mar-08 9:10
protectorChristian Graus17-Mar-08 9:10 
Question2 Icons when MDI child is maximized, 3 sets of min/max/close boxes when maxed? Pin
eggsovereasy17-Mar-08 8:04
eggsovereasy17-Mar-08 8:04 
AnswerRe: 2 Icons when MDI child is maximized, 3 sets of min/max/close boxes when maxed? Pin
parth.p17-Mar-08 12:18
parth.p17-Mar-08 12:18 
GeneralRe: 2 Icons when MDI child is maximized, 3 sets of min/max/close boxes when maxed? Pin
eggsovereasy18-Mar-08 6:32
eggsovereasy18-Mar-08 6:32 
GeneralRe: 2 Icons when MDI child is maximized, 3 sets of min/max/close boxes when maxed? Pin
parth.p18-Mar-08 8:57
parth.p18-Mar-08 8:57 
Questionuser control event delegation Pin
Sandesh Kadam17-Mar-08 7:43
Sandesh Kadam17-Mar-08 7:43 
QuestionAdding records to an Access database Pin
mikeyman417-Mar-08 7:12
mikeyman417-Mar-08 7:12 
GeneralRe: Adding records to an Access database Pin
PIEBALDconsult17-Mar-08 7:46
mvePIEBALDconsult17-Mar-08 7:46 
GeneralRe: Adding records to an Access database Pin
Christian Graus17-Mar-08 9:12
protectorChristian Graus17-Mar-08 9:12 
QuestionSVG viewer in C# app Pin
Paresh Solanki17-Mar-08 6:31
Paresh Solanki17-Mar-08 6:31 
GeneralRe: SVG viewer in C# app Pin
Christian Graus17-Mar-08 9:13
protectorChristian Graus17-Mar-08 9:13 

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.