Click here to Skip to main content
15,889,853 members
Home / Discussions / C#
   

C#

 
AnswerRe: autonumber Pin
Colin Angus Mackay20-Sep-07 0:12
Colin Angus Mackay20-Sep-07 0:12 
AnswerRe: autonumber Pin
Kuldeep Antil20-Sep-07 0:17
Kuldeep Antil20-Sep-07 0:17 
AnswerRe: autonumber Pin
Pete O'Hanlon20-Sep-07 0:20
mvePete O'Hanlon20-Sep-07 0:20 
Questionbyte array conversion Pin
bttds19-Sep-07 23:38
bttds19-Sep-07 23:38 
From a windows application form I need to print a ticket from a special ticket printer. that ticket includes a 2D barcode which is a string of all the information about a customer. I need to encrypt it and get as a byte array so I use Cryptoservices and done that. to concatenate that data with other data I've done something like this

System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
string str = System.Text.Encoding.ASCII.GetString(b);

So printing part is working fine. But when I scan the barcode and try to get it back to byte array like this,
byte[] b = System.Text.Encoding.ASCII.GetBytes(data);

Then my array size gets smaller and when I try to decrypt it it throws an error saying that invalid length of string.

can anybody help me.


AnswerRe: byte array conversion Pin
Guffa20-Sep-07 2:38
Guffa20-Sep-07 2:38 
GeneralRe: byte array conversion Pin
bttds20-Sep-07 15:47
bttds20-Sep-07 15:47 
AnswerRe: byte array conversion Pin
Guffa21-Sep-07 10:03
Guffa21-Sep-07 10:03 
QuestionHash Table Problem Urgent Pin
Nishad8519-Sep-07 23:21
Nishad8519-Sep-07 23:21 
AnswerRe: Hash Table Problem Urgent Pin
Pete O'Hanlon19-Sep-07 23:41
mvePete O'Hanlon19-Sep-07 23:41 
AnswerRe: Hash Table Problem Urgent Pin
lost in transition 20-Sep-07 11:27
lost in transition 20-Sep-07 11:27 
Questionurgent copy image from hard Drive on local host Pin
mavii19-Sep-07 22:56
mavii19-Sep-07 22:56 
AnswerRe: urgent copy image from hard Drive on local host Pin
Giorgi Dalakishvili19-Sep-07 23:21
mentorGiorgi Dalakishvili19-Sep-07 23:21 
GeneralRe: urgent copy image from hard Drive on local host Pin
mavii19-Sep-07 23:51
mavii19-Sep-07 23:51 
GeneralRe: urgent copy image from hard Drive on local host Pin
Pete O'Hanlon19-Sep-07 23:55
mvePete O'Hanlon19-Sep-07 23:55 
GeneralRe: urgent copy image from hard Drive on local host Pin
mavii20-Sep-07 0:35
mavii20-Sep-07 0:35 
GeneralRe: urgent copy image from hard Drive on local host Pin
pmarfleet20-Sep-07 1:13
pmarfleet20-Sep-07 1:13 
GeneralRe: urgent copy image from hard Drive on local host Pin
Pete O'Hanlon20-Sep-07 1:20
mvePete O'Hanlon20-Sep-07 1:20 
GeneralRe: urgent copy image from hard Drive on local host Pin
mavii21-Sep-07 1:01
mavii21-Sep-07 1:01 
AnswerRe: urgent copy image from hard Drive on local host Pin
Malcolm Smart20-Sep-07 1:38
Malcolm Smart20-Sep-07 1:38 
Questionc++ equivalent of c# code Pin
tasumisra19-Sep-07 22:40
tasumisra19-Sep-07 22:40 
AnswerRe: c++ equivalent of c# code Pin
Christian Graus20-Sep-07 0:21
protectorChristian Graus20-Sep-07 0:21 
QuestionDo a check in a textBox Pin
lourensG19-Sep-07 22:13
lourensG19-Sep-07 22:13 
AnswerRe: Do a check in a textBox Pin
Giorgi Dalakishvili19-Sep-07 22:22
mentorGiorgi Dalakishvili19-Sep-07 22:22 
AnswerRe: Do a check in a textBox Pin
Martin#19-Sep-07 22:35
Martin#19-Sep-07 22:35 
AnswerRe: Do a check in a textBox Pin
Nouman Bhatti19-Sep-07 23:50
Nouman Bhatti19-Sep-07 23:50 

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.