15,891,758 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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