Click here to Skip to main content
15,898,888 members
Home / Discussions / C#
   

C#

 
AnswerRe: Developing application....need some help...pls Pin
Christian Graus12-Jan-07 9:35
protectorChristian Graus12-Jan-07 9:35 
GeneralRe: Developing application....need some help...pls Pin
Larantz12-Jan-07 10:44
Larantz12-Jan-07 10:44 
QuestionUpgrade persistent settings after new install? Pin
paas12-Jan-07 7:54
paas12-Jan-07 7:54 
AnswerRe: Upgrade persistent settings after new install? Pin
paas12-Jan-07 8:44
paas12-Jan-07 8:44 
QuestionWizarding Dataset puts some SPs into QueriesTableAdapter Pin
RebeccaTS12-Jan-07 7:41
RebeccaTS12-Jan-07 7:41 
QuestionChat Program Pin
mokhabarat12-Jan-07 7:32
mokhabarat12-Jan-07 7:32 
AnswerRe: Chat Program Pin
Not Active12-Jan-07 8:42
mentorNot Active12-Jan-07 8:42 
QuestionAccessing Image from MS Access database and displaying it in form Pin
Shaurya Rastogi12-Jan-07 7:24
Shaurya Rastogi12-Jan-07 7:24 
1>I have to retrive and display images that are present in a MS Access Database.

2>The images have been inserted in the database by the user by using the Insert Object Functionality of MS Access so the Image is displayed as Bitmap Image for .BMP and Package for .JPEG in the DataBase Image Field.

3>I have tried reading the data in a Byte Array and then display it but it dosent work that way.

//Obtain Image in a byte array
byImageArray = (byte[])Command.ExecuteScalar();

//Read the byte array to memory stream
MemoryStream memStream = new MemoryStream(byImageArray);

//Read Image from the memory stream into picture box.
picImage.Image=Image.FromStream(memStream);

An exception is thrown is Argument Exception:Parameter is not valid.

This code works fine if we store image in DataBase Programmitically by using Byte Array,but not when we access a image that had been directly in the table by user by using Insert Object Functionality of MS Access

AnswerRe: Accessing Image from MS Access database and displaying it in form Pin
Dave Kreskowiak12-Jan-07 8:51
mveDave Kreskowiak12-Jan-07 8:51 
AnswerRe: Accessing Image from MS Access database and displaying it in form Pin
Rob Graham12-Jan-07 14:09
Rob Graham12-Jan-07 14:09 
QuestionRe: Accessing Image from MS Access database and displaying it in form Pin
Shaurya Rastogi13-Jan-07 1:38
Shaurya Rastogi13-Jan-07 1:38 
QuestionObtainting XML from C++ Pin
rahulmballal12-Jan-07 7:14
rahulmballal12-Jan-07 7:14 
AnswerRe: Obtainting XML from C++ Pin
Stefan Troschuetz12-Jan-07 7:47
Stefan Troschuetz12-Jan-07 7:47 
Questiontextbox problem Pin
biaali12-Jan-07 7:04
biaali12-Jan-07 7:04 
AnswerRe: textbox problem Pin
Ravi Bhavnani12-Jan-07 7:10
professionalRavi Bhavnani12-Jan-07 7:10 
AnswerRe: textbox problem Pin
Drew McGhie12-Jan-07 9:51
Drew McGhie12-Jan-07 9:51 
Questiontextbox problem Pin
biaali12-Jan-07 7:03
biaali12-Jan-07 7:03 
AnswerRe: textbox problem Pin
anilsolanki12-Jan-07 8:40
anilsolanki12-Jan-07 8:40 
Questionbuiding drivers in c# Pin
dany_ch12-Jan-07 6:55
dany_ch12-Jan-07 6:55 
AnswerRe: buiding drivers in c# Pin
Not Active12-Jan-07 7:01
mentorNot Active12-Jan-07 7:01 
AnswerRe: buiding drivers in c# Pin
anilsolanki12-Jan-07 8:43
anilsolanki12-Jan-07 8:43 
GeneralRe: buiding drivers in c# Pin
Dave Kreskowiak12-Jan-07 8:48
mveDave Kreskowiak12-Jan-07 8:48 
GeneralRe: buiding drivers in c# Pin
Not Active12-Jan-07 11:12
mentorNot Active12-Jan-07 11:12 
GeneralRe: buiding drivers in c# Pin
Christian Graus12-Jan-07 12:03
protectorChristian Graus12-Jan-07 12:03 
GeneralRe: buiding drivers in c# Pin
Rob Graham12-Jan-07 14:11
Rob Graham12-Jan-07 14:11 

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.