I'm currently trying to create a report in XML which will be read by another piece of software and I need to include photos in that report. I have created the report and it exports the data as expected.
My question is, what format is the photo data in? ie. If I were to programmatically import that data, what format is it? Hope someone can help.
Well, having actually read the XML schema, I have realised it is base64binary data.
So, the following snippet of c# code will convert it back into an image:
Then you can use that how you pleaseCode:string original 'stick photo data here'; byte todecode = Convert.FromBase64String(original); MemoryStream ms = new MemoryStream(todecode); Image img = Image.FromStream(ms);
There are currently 1 users browsing this thread. (0 members and 1 guests)