Click here to Skip to main content
15,920,383 members
Home / Discussions / C#
   

C#

 
GeneralApplication does not run on Laptops Pin
rozhanin24-Feb-08 19:39
rozhanin24-Feb-08 19:39 
GeneralRe: Application does not run on Laptops Pin
Christian Graus24-Feb-08 19:56
protectorChristian Graus24-Feb-08 19:56 
GeneralRe: Application does not run on Laptops Pin
rozhanin25-Feb-08 0:44
rozhanin25-Feb-08 0:44 
Question(C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
zeopyrix24-Feb-08 19:26
zeopyrix24-Feb-08 19:26 
AnswerRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
Christian Graus24-Feb-08 19:59
protectorChristian Graus24-Feb-08 19:59 
GeneralRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
zeopyrix24-Feb-08 20:06
zeopyrix24-Feb-08 20:06 
GeneralRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
Christian Graus24-Feb-08 20:14
protectorChristian Graus24-Feb-08 20:14 
Questionproblem while retriving image from database. [modified] Pin
avvaru.murali24-Feb-08 19:24
avvaru.murali24-Feb-08 19:24 
Hi,
iam doing windows application c#

my database is "Firebird Database";

iam able to insert an picture into database,but iam unable to retrive the same..
my code is :
int id = int.Parse(textBox1.Text);
FbConnection cnn = new FbConnection("ServerType=1;User=SYSDBA;Password=masterkey;Database=E:/database/test.fdb");
cnn.Open();
string query = "select photo from cust1 where id=" + id;
FbDataAdapter adb = new FbDataAdapter(query, cnn);
DataSet ds = new DataSet();
adb.Fill(ds, "cust1");
DataRowCollection rdsrows = ds.Tables[0].Rows;

if (!rdsrows[0][0].Equals(DBNull.Value))
{
byte[] content = (byte[])rdsrows[0][0];
MemoryStream stream = new MemoryStream(content);
Bitmap img = new Bitmap(stream);-------------------"Error Here"
pictureBox1.Image = img;
}

it's giving error "parameter is not valid"
please inform where the problem is

murali krishna

modified on Monday, February 25, 2008 1:36 AM

GeneralRe: problem while image from database. Pin
Christian Graus24-Feb-08 19:32
protectorChristian Graus24-Feb-08 19:32 
QuestionRe: problem while retrving image from database. Pin
avvaru.murali24-Feb-08 19:40
avvaru.murali24-Feb-08 19:40 
GeneralRe: problem while retrving image from database. Pin
Christian Graus24-Feb-08 20:00
protectorChristian Graus24-Feb-08 20:00 
AnswerRe: problem while image from database. Pin
zeopyrix24-Feb-08 19:39
zeopyrix24-Feb-08 19:39 
GeneralRe: problem while retriving image from database. Pin
Giorgi Dalakishvili24-Feb-08 20:18
mentorGiorgi Dalakishvili24-Feb-08 20:18 
GeneralExecuting SSis package from C# Pin
tasumisra24-Feb-08 19:18
tasumisra24-Feb-08 19:18 
Questionindeterminate progress bar Pin
veerbala24-Feb-08 18:57
veerbala24-Feb-08 18:57 
GeneralRe: indeterminate progress bar Pin
Christian Graus24-Feb-08 19:08
protectorChristian Graus24-Feb-08 19:08 
QuestionUnique random numbers Pin
D i x y24-Feb-08 18:55
D i x y24-Feb-08 18:55 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 19:07
protectorChristian Graus24-Feb-08 19:07 
GeneralRe: Unique random numbers Pin
D i x y24-Feb-08 19:52
D i x y24-Feb-08 19:52 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 20:16
protectorChristian Graus24-Feb-08 20:16 
GeneralHold the timer tick event before processing Pin
CodingLover24-Feb-08 18:26
CodingLover24-Feb-08 18:26 
GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 18:29
protectorChristian Graus24-Feb-08 18:29 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 18:46
CodingLover24-Feb-08 18:46 
GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 19:04
protectorChristian Graus24-Feb-08 19:04 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 19:11
CodingLover24-Feb-08 19: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.