Click here to Skip to main content
15,923,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: divide by zero Pin
Simon P Stevens24-Apr-08 9:54
Simon P Stevens24-Apr-08 9:54 
GeneralRe: divide by zero Pin
Pete O'Hanlon24-Apr-08 10:19
mvePete O'Hanlon24-Apr-08 10:19 
GeneralRe: divide by zero Pin
PIEBALDconsult24-Apr-08 13:09
mvePIEBALDconsult24-Apr-08 13:09 
GeneralRe: divide by zero Pin
George_George24-Apr-08 1:01
George_George24-Apr-08 1:01 
GeneralRe: divide by zero Pin
George_George24-Apr-08 0:59
George_George24-Apr-08 0:59 
GeneralChuck Norris Pin
Chris Maunder24-Apr-08 13:01
cofounderChris Maunder24-Apr-08 13:01 
GeneralRe: Chuck Norris Pin
Vikram A Punathambekar24-Apr-08 19:09
Vikram A Punathambekar24-Apr-08 19:09 
Questionproblem with DataBase path when uploading image Pin
avvaru.murali23-Apr-08 23:16
avvaru.murali23-Apr-08 23:16 
Hi iam in windows application using c#.
my database is "FireBird Database".

Database path is :

string dsRelativePath = "database\\absolutemedia.fdb";
string dsAbsolutePath = Path.GetFullPath(dsRelativePath);
string ConnectionString = "ServerType=1;User=SYSDBA;Password=masterkey;Database=" +dsAbsolutePath;

//Code for upload image
OpenFileDialog opn = new OpenFileDialog();
opn.Filter = "JPEG|*.jpg|GIF|*.gif";
opn.ShowDialog();
if (opn.FileName.Length > 0)
{
this.IMG = Image.FromFile(opn.FileName);

browsetext.Text = opn.FileName;

this.resizeHeight = 240;
this.resizeWidth = 320;
IMG = this.resizeImage(IMG, new Size(resizeWidth, resizeHeight));

imagebox.Image = IMG;

}

This path is working fine upto now..
but in my application, i have an option to upload images from local drives..iam browisng an image thru "OpenFileDialog".. after selecting an image .when iam going to save ,
database path i,e dsAbsolutePath is changed to image path.it's giving error in database connection...

Error---"I/O error for file CreateFile (open) "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\database\absolutemedia.fdb"

please reply where the problem is ?
how can i rectify this .

murali krishna

Questionhow to make function running in background by itself every 2 minutes? Pin
Mohammed F. Salem23-Apr-08 22:59
Mohammed F. Salem23-Apr-08 22:59 
AnswerRe: how to make function running in background by itself every 2 minutes? Pin
Simon P Stevens23-Apr-08 23:18
Simon P Stevens23-Apr-08 23:18 
GeneralRe: how to make function running in background by itself every 2 minutes? [modified] Pin
Mohammed F. Salem23-Apr-08 23:46
Mohammed F. Salem23-Apr-08 23:46 
QuestionSend... Click? Pin
Reelix23-Apr-08 22:59
Reelix23-Apr-08 22:59 
AnswerRe: Send... Click? Pin
phannon8623-Apr-08 23:02
professionalphannon8623-Apr-08 23:02 
GeneralRe: Send... Click? Pin
Reelix23-Apr-08 23:18
Reelix23-Apr-08 23:18 
GeneralStore session values using Javascript Pin
Archana New to Dotnet23-Apr-08 22:58
Archana New to Dotnet23-Apr-08 22:58 
GeneralRe: Store session values using Javascript Pin
Spunky Coder23-Apr-08 23:06
Spunky Coder23-Apr-08 23:06 
QuestionForms Pin
bdiepeveen23-Apr-08 22:28
bdiepeveen23-Apr-08 22:28 
GeneralRe: Forms Pin
cocoonwls23-Apr-08 23:09
cocoonwls23-Apr-08 23:09 
GeneralRe: Forms Pin
bdiepeveen23-Apr-08 23:32
bdiepeveen23-Apr-08 23:32 
GeneralRe: Forms Pin
bdiepeveen23-Apr-08 23:42
bdiepeveen23-Apr-08 23:42 
GeneralRe: Forms Pin
phannon8623-Apr-08 23:53
professionalphannon8623-Apr-08 23:53 
GeneralRe: Forms Pin
bdiepeveen24-Apr-08 0:00
bdiepeveen24-Apr-08 0:00 
GeneralRe: Forms Pin
cocoonwls24-Apr-08 15:23
cocoonwls24-Apr-08 15:23 
GeneralRe: Forms Pin
bdiepeveen24-Apr-08 21:19
bdiepeveen24-Apr-08 21:19 
GeneralRe: Forms Pin
Ruben Jönsson25-Apr-08 13:43
Ruben Jönsson25-Apr-08 13:43 

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.