Convert blob to string to to create a json object and then change the string back to blob

My requirement is to convert the blob in a database field to string to create a json object. I have achieved that.

Now, I need to convert this string back to blob. I wrote the below code. But, it does not work. In my instance, I have the word document stored as blob. I converted it to string but when I converted the string to blob, the document does not open properly.

Please let me know a way to convert the string back to blob.

DocumentTemplateKey documentTemplateKey = new DocumentTemplateKey();

documentTemplateKey.documentTemplateID = "XX";


Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts