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: Today @ 5:58 AM
Points: 6,076, Visits: 6,934
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


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:33 AM
Points: 5,040, Visits: 11,998
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

How to post T-SQL questions
spaghettidba.com
@spaghettidba
Post #1563005
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse