MIS Systems Thread, SIMS.net Reports, Photos and XML in Technical; I'm currently trying to create a report in XML which will be read by another piece of software and I ...
12th February 2009, 11:16 AM #1
SIMS.net Reports, Photos and XML
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.
IDG Tech News
13th February 2009, 11:51 AM #2
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 please
string original 'stick photo data here';
byte todecode = Convert.FromBase64String(original);
MemoryStream ms = new MemoryStream(todecode);
Image img = Image.FromStream(ms);
By duncane in forum MIS Systems
Last Post: 21st September 2008, 09:07 AM
By shappaeye in forum MIS Systems
Last Post: 12th June 2008, 10:25 AM
By manxdan in forum MIS Systems
Last Post: 26th June 2007, 11:53 AM
By Irazmus in forum MIS Systems
Last Post: 12th October 2006, 03:02 PM
By edie209 in forum MIS Systems
Last Post: 15th June 2006, 01:17 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread