Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Encoding data with Powershell Expand / Collapse
Author
Message
Posted Friday, April 18, 2014 6:42 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 10:45 AM
Points: 5,572, Visits: 6,356
I'm pulling a text file into Powershell so I can send it via HTTPS. But as part of the send, the data needs to be encoded as Multipart/Form-Data (MIME) format. I'm unsure if that's automatically a part of the transmission process (somehow I doubt it) or if I need to something additional.

Does anyone have experience with this sort of thing?


Brandie Tarvin, MCITP Database Administrator

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #1563003
Posted Friday, April 18, 2014 6:46 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Thursday, September 18, 2014 3:29 PM
Points: 4,324, Visits: 10,571
No, sorry, you have to do it in some other way.
MIME is basically BASE64 encoding, so maybe System.Convert.ToBase64String is your friend.


--
Gianluca Sartori

Get your two-cent-answer quickly
spaghettidba.com
@spaghettidba
Post #1563005
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse