Click here to Skip to main content
15,898,222 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHow to get emulator to setup socket connect via serial port ? Pin
glweid9-Jun-04 11:59
glweid9-Jun-04 11:59 
GeneralBeep for pocketPC?. Pin
GDavy9-Jun-04 2:47
GDavy9-Jun-04 2:47 
GeneralRe: Beep for pocketPC?. Pin
João Paulo Figueira9-Jun-04 3:11
professionalJoão Paulo Figueira9-Jun-04 3:11 
General'vcw' Projects that will not load Pin
LittleYellowBird8-Jun-04 22:42
LittleYellowBird8-Jun-04 22:42 
GeneralNeed a small advice regarding strings Pin
no_reg_name8-Jun-04 0:42
no_reg_name8-Jun-04 0:42 
GeneralRe: Need a small advice regarding strings Pin
Jonas Larsson8-Jun-04 1:08
Jonas Larsson8-Jun-04 1:08 
GeneralRe: Need a small advice regarding strings Pin
Antony M Kancidrowski8-Jun-04 3:07
Antony M Kancidrowski8-Jun-04 3:07 
Generalimage data type, sql server ce 2.0 Pin
khchan7-Jun-04 16:07
khchan7-Jun-04 16:07 
as i know, we may use image data type to deal with blob.
but the problem is, how can i insert the bytes to the database?? Confused | :confused:

i have tried the follow code segment, but it doesn't work

SqlCeCommand addPic = conn.CreateCommand();
addPic.CommandText = "INSERT INTO photoTable (Photo) VALUES(@Photo)";
SqlCeParameter picParam = addPic.Parameters.Add("@Photo", SqlDbType.Image);
picParam.Value = GetPhoto(photoFilePath);

public static byte[] GetPhoto(string filePath)
{
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);

byte[] photo = br.ReadBytes((int)fs.Length);

br.Close();
fs.Close();

return photo;
}

thanks Smile | :)
GeneralInstrumentation widgets / gadgets for CE .Net 4.2 Pin
David Fulmer7-Jun-04 5:13
David Fulmer7-Jun-04 5:13 
GeneralRe: Instrumentation widgets / gadgets for CE .Net 4.2 Pin
Edw21-Jun-04 10:03
Edw21-Jun-04 10:03 
QuestionHow to make a setup that can install appropriate files on Pocket PC 2002 or 2003 Pin
Bui Huy Kien4-Jun-04 19:17
Bui Huy Kien4-Jun-04 19:17 
Generallaunch application in application and close it Pin
ppp0013-Jun-04 21:34
ppp0013-Jun-04 21:34 
GeneralC# performance Pin
ppp0013-Jun-04 7:34
ppp0013-Jun-04 7:34 
GeneralRe: C# performance Pin
João Paulo Figueira3-Jun-04 11:41
professionalJoão Paulo Figueira3-Jun-04 11:41 
GeneralC4925: INTERNAL COMPILER WARNING Pin
GDavy2-Jun-04 21:43
GDavy2-Jun-04 21:43 
Generalembedded visual c++ Pin
jetimms2-Jun-04 7:22
jetimms2-Jun-04 7:22 
GeneralRe: embedded visual c++ Pin
João Paulo Figueira2-Jun-04 10:35
professionalJoão Paulo Figueira2-Jun-04 10:35 
Generalbiometric Pin
yep yin31-May-04 21:01
yep yin31-May-04 21:01 
GeneralRe: biometric Pin
cmk3-Jun-04 15:44
cmk3-Jun-04 15:44 
GeneralRe: biometric Pin
yep yin3-Jun-04 18:32
yep yin3-Jun-04 18:32 
GeneralRe: biometric Pin
cmk3-Jun-04 23:17
cmk3-Jun-04 23:17 
GeneralRe: biometric Pin
yep yin7-Jun-04 19:42
yep yin7-Jun-04 19:42 
GeneralIPv6 in compact framework Pin
dormi33331-May-04 2:57
dormi33331-May-04 2:57 
GeneralAny samples for OLEDB API's for accessing Windows CE SQL Server Pin
Anonymous31-May-04 0:49
Anonymous31-May-04 0:49 
GeneralRe: Any samples for OLEDB API's for accessing Windows CE SQL Server Pin
João Paulo Figueira31-May-04 5:34
professionalJoão Paulo Figueira31-May-04 5:34 

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.