Click here to Skip to main content
16,020,811 members
Home / Discussions / C#
   

C#

 
QuestionWindows App for NGO Pin
COder87610-Nov-15 7:01
COder87610-Nov-15 7:01 
AnswerRe: Windows App for NGO Pin
Gerry Schmitz10-Nov-15 8:00
mveGerry Schmitz10-Nov-15 8:00 
AnswerRe: Windows App for NGO Pin
Richard MacCutchan10-Nov-15 8:39
mveRichard MacCutchan10-Nov-15 8:39 
AnswerRe: Windows App for NGO Pin
BillWoodruff10-Nov-15 14:32
professionalBillWoodruff10-Nov-15 14:32 
QuestionMissingManifestResourceException Pin
Rob Shields10-Nov-15 2:58
Rob Shields10-Nov-15 2:58 
AnswerRe: MissingManifestResourceException Pin
OriginalGriff10-Nov-15 3:32
mveOriginalGriff10-Nov-15 3:32 
AnswerRe: MissingManifestResourceException Pin
phil.o10-Nov-15 4:54
professionalphil.o10-Nov-15 4:54 
Questionhow to get Image from DataSet Pin
goldsoft10-Nov-15 0:29
goldsoft10-Nov-15 0:29 
hi
i have DataSet that contain Image.

i need to save this Image to File.

i try this:

SQL = ItemCode,PIC from ROW;
dsView = new DataSet();
adp = new SqlCeDataAdapter(SQL, Conn);
adp.Fill(dsView, "ROW");
adp.Dispose();
foreach (DataRow R in dsROW.Tables[0].Rows)
{
ItemCode = R["ItemCode"].ToString().Trim() ;
TEMP = R["PIC"].ToString().Trim();

Image image = R["PIC"] as Image;
if(image != null)
{
MemoryStream ms = new MemoryStream();
image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] imagedata = ms.ToArray();
}

but image Always is null

and in TEMP i see System.Byte[]

need some help, thanks
AnswerRe: how to get Image from DataSet Pin
John Torjo10-Nov-15 0:40
professionalJohn Torjo10-Nov-15 0:40 
GeneralRe: how to get Image from DataSet Pin
goldsoft10-Nov-15 1:02
goldsoft10-Nov-15 1:02 
GeneralRe: how to get Image from DataSet Pin
John Torjo10-Nov-15 4:07
professionalJohn Torjo10-Nov-15 4:07 
QuestionHow to get data(json) to listview by MVVM? Pin
Lê Thiên Hoàng8-Nov-15 14:08
Lê Thiên Hoàng8-Nov-15 14:08 
AnswerRe: How to get data(json) to listview by MVVM? Pin
Nathan Minier9-Nov-15 3:15
professionalNathan Minier9-Nov-15 3:15 
GeneralRe: How to get data(json) to listview by MVVM? Pin
Lê Thiên Hoàng9-Nov-15 5:04
Lê Thiên Hoàng9-Nov-15 5:04 
GeneralRe: How to get data(json) to listview by MVVM? Pin
Lê Thiên Hoàng9-Nov-15 5:08
Lê Thiên Hoàng9-Nov-15 5:08 
QuestionHow to make a GUI in cosmos Pin
Member 121050098-Nov-15 9:29
Member 121050098-Nov-15 9:29 
AnswerRe: How to make a GUI in cosmos Pin
Richard Andrew x648-Nov-15 9:45
professionalRichard Andrew x648-Nov-15 9:45 
GeneralRe: How to make a GUI in cosmos Pin
BillWoodruff8-Nov-15 9:53
professionalBillWoodruff8-Nov-15 9:53 
GeneralRe: How to make a GUI in cosmos Pin
Richard Andrew x648-Nov-15 10:08
professionalRichard Andrew x648-Nov-15 10:08 
AnswerRe: How to make a GUI in cosmos Pin
Eddy Vluggen8-Nov-15 9:50
professionalEddy Vluggen8-Nov-15 9:50 
GeneralRe: How to make a GUI in cosmos Pin
BillWoodruff8-Nov-15 10:19
professionalBillWoodruff8-Nov-15 10:19 
GeneralRe: How to make a GUI in cosmos Pin
Eddy Vluggen9-Nov-15 1:14
professionalEddy Vluggen9-Nov-15 1:14 
QuestionC# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 3:36
Member 113675538-Nov-15 3:36 
QuestionRe: C# Using Proxies with HttpWebRequests Pin
Richard MacCutchan8-Nov-15 3:43
mveRichard MacCutchan8-Nov-15 3:43 
AnswerRe: C# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 3:45
Member 113675538-Nov-15 3:45 

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.