cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Base64 to Blob

Jay543
Visitor

Base64 to Blob

I have a base64 encoded file that I am trying to save into a mssql database with a field type of varbinary(max). 

For the life of me, I cannot figure out the correct JavaScript code for my ThingWorx service to convert this base64 data into binary for the database thing to insert the record. Also, do I use a blob input datatype for this field for the database service?

1 REPLY 1

Re: Base64 to Blob

The only Binary related API in TWX snippet is: LoadBinary, PostBinary, PutBinary, if you want to convert to binary, try public JS services.

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.