LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MIME decoding subVI?

Does anyone have or know of a subVI that will take a textfile containing
MIME-encoded data and convert it into its original (binary) format?

Many thanks in advance.

--Scott Jordan
scottj@ricochet.net
0 Kudos
Message 1 of 7
(3,763 Views)
> Does anyone have or know of a subVI that will take a textfile containing
> MIME-encoded data and convert it into its original (binary) format?
>
> Many thanks in advance.
>
> --Scott Jordan
> scottj@ricochet.net


Replying to my own post: with a great deal of helpful pointers from another
listmember, I constructed a rather elegant (IMHO) decoder entirely in
dataflow. It is currently configured for Base64 decoding but could easily
be adapted to uudecoding, xxdecoding or similar schemes. It needs more
error checking formality but serves my purposes for now. Email me if you
are interested in a copy; I'm happy to share it with this helpful group.
It's in 5.0x.

Note that (per NI) no MIME decoder functionality is provided in the
Internet Developer's Toolkit. That's a bit
of an oversight...

--Scott Jordan
scottj@ricochet.net
0 Kudos
Message 2 of 7
(3,764 Views)
Hello Scott,

I work with National Instruments in helping people with their
instrumentation needs. If all you need is FTP post of your data, then
you should consider using the Datasocket Tools available as an added
feature to LabVIEW 5.0 and 5.1.

DataSocket Tools
New DataSocket tools for simplified sharing of data and information in
distributed, network, and Internet-based applications.
Data communication using a variety of including TCP/IP, HTTP, FTP,and
file I/O.

When in need of example programs, please visit our support page at:
www.natinst.com/support/
There you will find pull-down menus asking for the specific software you
are using and what type of support you are needing (Examples,Application
Notes, or FAQ).

I could not find anything
specific examples to MIME-decoding, but we
have had some solutions in regards to this using Datasocket. If you
call our Application Engineers at 1-800-433-3488, they will be able to
assist you with your concerns on MIME-decoding using LabVIEW. If you
have any questions, feel free to contact myself at 1-800-433-3488
x30133.

Regards,
Monico Reyna
Technical Engineer
National Instruments
1-800-433-3488 x30133
monico.reyna@natinst.com


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
0 Kudos
Message 3 of 7
(3,763 Views)
Can you post your MIME decoder? I made a MIME encoder a short while ago for making MIME encoded web archives (internet explorer .mht files). That lets me convert all my html output reports to one web-ready archive instead of an html file with a bunch of pictures. I don't have a decoder though... could come in handy.
0 Kudos
Message 4 of 7
(3,669 Views)
Has anyone come up with VIs that help in the construction of MIME compliant http strings?  I'm trying to send MIME to an ActiveX (for IE) Navigate2.  My first problem is that the postData input doesn't recognize my message as a POST - it sends a GET.  I've tried putting together simple examples and complex ones and I can't get a POST to go out.  The other problem I have is that I must issue some MIME compliant POST messages, and they're not easy to figure out.  I was hoping someone had come up with some VIs that would allow me to put together the MIME postData that needs to go to the Navigate2.
0 Kudos
Message 5 of 7
(3,184 Views)
I thought I would attach a code snippet of what I'm trying to do - might help.
0 Kudos
Message 6 of 7
(3,170 Views)

In case anyone is trying to solve the same problem I was ... I found my problem with the postdata.  I was passing it a string.  However, postdata requires a byte array.  Once I ran the string through a 'string to byte array', the POST appeared.

 

Now I need to figure out building MIME content - oh joy!

0 Kudos
Message 7 of 7
(3,149 Views)