LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write an image in the XML file

Hi all,

 

I need to save image files along with some data in the xml file.
is it possible?

 

can you please give me suggestion.

 

 

Thanks

0 Kudos
Message 1 of 4
(4,071 Views)

Hi!

Try giving a look to this article:

http://www.xml.com/pub/a/98/07/binary/binary.html

 

It's not strictly about Labview but it's interesting.

 

Regards,

Marco

0 Kudos
Message 2 of 4
(4,057 Views)

Another link (Labview Base64 encoding/deconding vi's):

 

https://decibel.ni.com/content/docs/DOC-5544

 

So I think what you should do is

1) flatten your binary object to string

2) Encode

3) Place the encoded string in yur xml

 

When reading do the opposite:

1) Read xml Base64 string

2) Decode

3) Unflatten

 

Let me know if it works,

regards,

Marco

0 Kudos
Message 3 of 4
(4,055 Views)

Or If Labview schema is acceptable, it is fairly straight forward.

image to xml.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 4 of 4
(4,040 Views)