LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and http MIME

I had too many bitmaps, etc to attach, so I put it all togehter into one Word file.  Hopefully this works.  I need help figuring out how to put together an http message in MIME format in LabVIEW so that I can send messages with content, such as excel files, or txt files.  Here is more information on the problem I'm having.

 

0 Kudos
Message 1 of 7
(4,743 Views)

Hi mrbean,

 

A quick wikipedia search for MIME suggests that you need to have a boundary between parts of your message and at the beginning and the end.  Is this the case in your VI?  In an effort to test this in LabVIEW, can you get a successful MIME message from the old application and send it via LabVIEW to make sure the transmission is ok?

0 Kudos
Message 2 of 7
(4,717 Views)
I obviously haven't tried everything, but I have tried many, many combinations/permutations, with and without boundaries, etc.  I can't seem to get any further.  At least when I sent (in the Headers) Content-Type: multipart/form-data; boundary="*-*-*-*-*-*-*-*", the MIME multipart ... header appeared, and provided me with a little bit of hope.  Since then, however, I haven't been able to get any of the Encapsulated multipart part subfields to show up.  No matter what i send in the PostData, it's all one large string in the 'Data' field (no subfields at all).
0 Kudos
Message 3 of 7
(4,710 Views)

Hi mrbean,

 

Are you able to test this message?

 

From: Nathaniel Borenstein To: Ned Freed Subject: Sample messageMIME-Version: 1.0Content-type: multipart/mixed;                           boundary="simple boundary"This is the preamble.  It is to be ignored, though it isa handy place for mail composers to include anexplanatory note to non-MIME compliant readers.--simple boundaryThis is implicitly typed plain ASCII text.--simple boundaryContent-type: text/plain; charset=us-asciiThis is explicitly typed plain ASCII text. It DOES endwith a line break.--simple boundary-- 

 

I found it at this site discussing MIME messages (http://www.mindspring.com/~mgrand/mime.html)  I'm curious to see if you can write this message directly in LabVIEW if you'll be able to read it correctly. 

0 Kudos
Message 4 of 7
(4,674 Views)

Although this example does do exactly what I want to do, it did show me some fields that I've been unable to get working (First Boundary, Encapsulated Data).  I need help figuring out why it thinks it's malformed.  Also, in my example, I need to send an Excel file (and a txt file in another scenario)

0 Kudos
Message 5 of 7
(4,659 Views)

Hi mrbean,

 

The invoke node you are using is just passing the values from LabVIEW to the ActiveX function. Beyond that, it's starting to move out of the scope of LabVIEW and into the realm of the MIME protocol and the ActiveX call. You may want to take a closer look at the details of the Navigate2 function and what format of data it accepts. 

0 Kudos
Message 6 of 7
(4,631 Views)
Have you seen the documentation available at the link you provided? - that's why I'm asking for help.  I know this is more of a MIME/http issue, but I was hoping at least one person on Earth had tried something like this from LabVIEW.  I'm trying to get tech support from Microsoft on this issue, but that's slow going.
0 Kudos
Message 7 of 7
(4,608 Views)