|
In that case, write as a byte[]
|
|
|
|
|
hello,
thank you for you help .
i convert string ti byte[] and write it still get the string as normal text .
i use that code
FileStream stream = new FileStream("C:\\mysecretfile.mms", FileMode.Create);
BinaryWriter w = new BinaryWriter(stream);
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
w.Write(encoding.GetBytes("X-Mms-Message-Type: m-send-req"));
w.Close();
JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
mohamed antar wrote: i convert string ti byte[] and write it still get the string as normal text .
Of course it is behaving that whay. You need to write each byte manualy. You can't easly convert string to binary format.
example:
FileStream stream = new FileStream("C:\\mysecretfile.mms", FileMode.Create);
BinaryWriter w = new BinaryWriter(stream);
w.Write(new bytes[]{0x42, 0x49, 0x4B, 0x69, 0xED, 0x47});
w.Close();
|
|
|
|
|
hello and thank you for your hellp
how i convert my string to thsi format
"0x42, 0x49, 0x4B, 0x69, 0xED, 0x47"JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Use program like HEX editor or viewer. Open your file and you will get proper binary format. Simple convertion from Binary to string results in a broken string. And if you wanted to convert back, you get a non working file
|
|
|
|
|
is ther a way to convert string using code ? JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
String is Binary, but you wan't specific format. What is this application you are creating and what kind of file is it?
|
|
|
|
|
i want create MMS Mobile File JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
You mean: Multimedia Messaging Service message file?
|
|
|
|
|
yes JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
|
thank you for your long help
i will try that ..JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:08am.
|
|
|
|
|
Sorry for my bad languish
what i want is get that
Œ€ک1267008088 چ’‰
پ…K…—ê0122555383/TYPE=PLMN –
êFW: Dodo „ ³‰application/smil
not the normal text .
thnak you for your hellpJavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:08am.
|
|
|
|
|
byte[] b = Encoding.ASCII.GetBytes("Hello World");
when i write the b its give me "Hello World"
how i convert Hello World to this format 0x01, 0x02, 0x03JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:07am.
|
|
|
|
|
thank you for your hellp JavaScript - C# - MS Sql Server - asp.net 2
|
|
|
|
|
Hi.
How i can edit listview item label like windows?
For example , in my listview have item and its text is "MyFile.exe" .
When i try edit, this label text selected fully:MyFile.exe.
But , in vista text selected without extention:MyFile.exe
How i can do it ?
Thanks .We are haven't bug,just temporarily undecided problems.
|
|
|
|
|
Look into selectedtext, you can specify the start position and the length of the text to be selected. Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi, Thanks for reply.
In ListView cantrol haven't selectedtext , startposition.
I'm using C# .net framework 2.0. I'm not shure , other .net framework versions have selectedtext
property.
Anybody help ?We are haven't bug,just temporarily undecided problems.
|
|
|
|
|
You are right, then split the file name into 2 fields when you load the listview, that will give you the granularity you need.
OR use another control!Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i saw this link
Explorer Shell Context Menu[^]
but in this project i can't use Send To File or Folder on win 7,it run on xp window
Help me please!
|
|
|
|
|
I see you've already posted on the article's forum which is the correct place. Normally you would get flamed for asking here too but it appears the author[^] hasn't been active here for around a year(so maybe take it easy guys n gals?).
|
|
|
|
|
Hi
I have 11 Forms in my app.
In Form1 (Ismdicontainer=true) i have 9 buttons
when i click on each button i want to open a new form (Mdiparent as Form1)
Inside each form i created some folders and gridviews..
in Form11 i have openfiledialog..
now i want to open Form1 inside the Openfiledialog to select the files which i have with me...
Thanks in advance..
|
|
|
|