Click here to Skip to main content
15,891,758 members

Comments by Saesee (Top 5 by date)

Saesee 4-Oct-12 10:44am View    
It's exactly what I search. The fact that we obtain the index of the item and not a custom value bothered me; but for a list defined in XAML, it will go.
Saesee 25-Sep-12 10:57am View    
no problem :p I try now to convert an Image from the OpenFileDialog but for now i haven't create the method for doing it because I don't know how to do. (maybe withe Stream or something I have read on forums...)
Saesee 25-Sep-12 10:32am View    
Exact :)

It's ok now for Base64 to Image. I now try the Image loaded from OpenDialog to Base64 ^^

for byte[] to ImageSource :
void btnChargerImage_Click(object sender, RoutedEventArgs e)
{
if (tbBytes.Text != String.Empty)
{
// Convert my TextBox in a byte array
byte[] imgStr = Convert.FromBase64String(tbBytes.Text);
imgImage.Source = ByteImageConverter.ByteToImage(imgStr);
}
}
Saesee 25-Sep-12 10:17am View    
@sjelen : Thanks, i'll progress.

With this code, a new error is born.

Line : imgStr[i] = (byte)tbBytes.Text[i];

Error : Exception IndexOutOfRangeException
Index out of limits of array

(it's a traduction)
Saesee 25-Sep-12 9:47am View    
It's a long text (45160 characters) represent the image.

I have put it in a web page to show you. You can see it at : http://signature.freresdekor.fr/imgcsharp