+ Post New Thread
Results 1 to 2 of 2
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 ...
  1. #1

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,792
    Thank Post
    517
    Thanked 2,468 Times in 1,912 Posts
    Blog Entries
    24
    Rep Power
    835

    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.

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,792
    Thank Post
    517
    Thanked 2,468 Times in 1,912 Posts
    Blog Entries
    24
    Rep Power
    835
    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:

    Code:
    string original 'stick photo data here';
    byte[] todecode = Convert.FromBase64String(original);
    MemoryStream ms = new MemoryStream(todecode);
    Image img = Image.FromStream(ms);
    Then you can use that how you please

SHARE:
+ Post New Thread

Similar Threads

  1. SIMs.net - User defined fields in reports?
    By duncane in forum MIS Systems
    Replies: 4
    Last Post: 21st September 2008, 08:07 AM
  2. SIMS.net and the missing reports
    By shappaeye in forum MIS Systems
    Replies: 0
    Last Post: 12th June 2008, 09:25 AM
  3. SIMS.net Schedule Reports
    By manxdan in forum MIS Systems
    Replies: 4
    Last Post: 26th June 2007, 10:53 AM
  4. SIMS.Net - problem importing new reports [SOLVED]
    By Irazmus in forum MIS Systems
    Replies: 31
    Last Post: 12th October 2006, 02:02 PM
  5. Sims.net (unique user defined reports missing)
    By edie209 in forum MIS Systems
    Replies: 3
    Last Post: 15th June 2006, 12:17 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •