Click here to Skip to main content
15,910,661 members
Home / Discussions / C#
   

C#

 
QuestionPlease Help in Livecaht Using Sockets Pin
Nvrk2-Jun-08 1:35
Nvrk2-Jun-08 1:35 
QuestionProblem reading from a socket: Data obtained halfway through is nothing but zeros Pin
KarlWF2-Jun-08 0:33
KarlWF2-Jun-08 0:33 
QuestionDifference between local dataset and dataset retrieved remotely Pin
Nigel Mackay1-Jun-08 23:59
Nigel Mackay1-Jun-08 23:59 
AnswerRe: Difference between local dataset and dataset retrieved remotely Pin
rah_sin2-Jun-08 1:28
professionalrah_sin2-Jun-08 1:28 
GeneralRe: Difference between local dataset and dataset retrieved remotely Pin
Nigel Mackay2-Jun-08 1:44
Nigel Mackay2-Jun-08 1:44 
GeneralRe: Difference between local dataset and dataset retrieved remotely Pin
rah_sin2-Jun-08 2:05
professionalrah_sin2-Jun-08 2:05 
GeneralRe: Difference between local dataset and dataset retrieved remotely Pin
Nigel Mackay2-Jun-08 2:23
Nigel Mackay2-Jun-08 2:23 
Questionhow to insert image from picturebox to database Pin
fofoth1-Jun-08 23:06
fofoth1-Jun-08 23:06 
im doing a project about RFID system registration..

database-ms access

database name=registerDBDataSet

table=ASAS

column=GAMBAR

in my form i have a gambarPictureBox,which retrieve the image from my pc(use browse button) from openFileDialog..

when run the program the image is open in the pictureBox and i want to save the image to database..

which way can i use?

since many coding that i search from internet using sql command,is there any other way to retrieve image from picture box and insert it into database?


the error happen when this code run:



private void saveButton_Click(object sender, EventArgs e)

{

this.aSASTableAdapter.Insert(nameTextBox.Text, tptLhrTextBox.Text, trhLhrTextBox.Text, jantinaTextBox.Text, kaumTextBox.Text, agamaTextBox.Text, wargaTextBox.Text, statusTextBox.Text, ICTextBox.Text,gambarPictureBox.Image);
this.aSASTableAdapter.Fill(this.registerDBDataSet.ASAS);

}

---->Error 1:The best overloaded method match for 'Registration.registerDBDataSetTableAdapters.ASASTableAdapter.Insert(string, string, string, string, string, string, string, string, string, byte[])' has some invalid arguments

---->Error 2: Argument '10': cannot convert from 'System.Drawing.Image' to 'byte[]' C:\Documents and Settings\fathiah.FATHIA-582A635D\Desktop\Registration\registerForm.cs



how to solve it..

please help me..
AnswerRe: how to insert image from picturebox to database Pin
neyerMat1-Jun-08 23:45
neyerMat1-Jun-08 23:45 
AnswerRe: how to insert image from picturebox to database [modified] Pin
DaveyM691-Jun-08 23:46
professionalDaveyM691-Jun-08 23:46 
AnswerRe: how to insert image from picturebox to database Pin
Gareth H2-Jun-08 0:28
Gareth H2-Jun-08 0:28 
QuestionWindows XP Pin
neyerMat1-Jun-08 22:48
neyerMat1-Jun-08 22:48 
AnswerRe: Windows XP Pin
DaveyM691-Jun-08 23:53
professionalDaveyM691-Jun-08 23:53 
GeneralRe: Windows XP Pin
neyerMat2-Jun-08 0:54
neyerMat2-Jun-08 0:54 
GeneralRe: Windows XP Pin
DaveyM692-Jun-08 1:18
professionalDaveyM692-Jun-08 1:18 
AnswerRe: Windows XP Pin
blackjack21502-Jun-08 0:38
blackjack21502-Jun-08 0:38 
GeneralRe: Windows XP Pin
neyerMat2-Jun-08 1:32
neyerMat2-Jun-08 1:32 
QuestionNeed help to solve basic OOP concept Pin
ashwinibhalerao1-Jun-08 21:41
ashwinibhalerao1-Jun-08 21:41 
AnswerRe: Need help to solve basic OOP concept Pin
N a v a n e e t h1-Jun-08 22:07
N a v a n e e t h1-Jun-08 22:07 
AnswerRe: Need help to solve basic OOP concept Pin
originSH1-Jun-08 22:30
originSH1-Jun-08 22:30 
AnswerRe: Need help to solve basic OOP concept Pin
Pete O'Hanlon1-Jun-08 22:30
mvePete O'Hanlon1-Jun-08 22:30 
AnswerRe: Need help to solve basic OOP concept Pin
Alan Balkany2-Jun-08 4:06
Alan Balkany2-Jun-08 4:06 
QuestionAuto ”Set as startup project” in Visual Studio Pin
anderslundsgard1-Jun-08 21:37
anderslundsgard1-Jun-08 21:37 
AnswerRe: Auto ”Set as startup project” in Visual Studio Pin
Ashfield1-Jun-08 23:06
Ashfield1-Jun-08 23:06 
GeneralRe: Auto ”Set as startup project” in Visual Studio Pin
anderslundsgard3-Jun-08 19:52
anderslundsgard3-Jun-08 19:52 

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.