>>>Hi everybody,
>>>
>>>I'm trying to pass a string that contains lots of low ascii characters and ''. This is actually a content of the photo. I'd like to create a test, but I can not embed this string in my code in C# even after I tried escaping " with \.
>>>
>>>What should I do to be able to pass that photo as is?
>>>
>>>Thanks in advance.
>>
>>Where are you getting the string from?
>>
>>When I need to access a string with odd characters that would disturb the compiler repeatedly, I put it in an .xml file and read it.
>
>The string will come from C++ application. Right now I want to simulate a test of such string.
IIRC, a C++ string is a byte array. You could try:
string s = Convert.ToBase64String(cplusstring);