Get Blob and convert to string 64

Hi:

In this code:

@using Syncfusion.Blazor.Inputs

@using Syncfusion.Blazor.Buttons

 

<h4>Sign Here</h4>

 

<SfSignature @ref="signature" BackgroundImage="https://media.istockphoto.com/photos/pixelated-leaf-picture-id1335295829?s=612x612"></SfSignature>

 

<SfButton @onclick="GetBlob">GetBlob</SfButton>


 

@code{

 

    private SfSignature signature;

 

    private async void GetBlob()

    {

        var blob = await signature.SaveAsBlobAsync();

        var type = blob.GetType();

    }


How can I convert "type" or "blob" variable into a string64?


Thanks.


Òscar



2 Replies

YA YuvanShankar Arunagiri Syncfusion Team June 29, 2022 05:40 AM UTC

Hi Oscar,


Sorry for the delay. We are validating your query with high priority and will update you the details on or before 1st July 2022.


Regards,

YuvanShankar A



YA YuvanShankar Arunagiri Syncfusion Team July 20, 2022 04:52 PM UTC

Hi Oscar,


We are deeply sorry for the inconvenience caused.

We have checked your reported query and currently we can’t convert the blob object into string. Please use the GetSignature method of the signature to get image data as base64 format(string). Please refer the below UG link.


UG link: https://blazor.syncfusion.com/documentation/signature/open-save#save-as-base64


Please get back to us, if you need any further assistance on this. 


Regards,

YuvanShankar A


Loader.
Up arrow icon