Blazor signature hangs a while and not returning data

Hi:

In Blazor I execute this command:

string base64image = await signature.GetSignatureAsync(SignatureFileType.Png); // Get signature as Base 64.

If the signature is not complicated (what i draw is simple) works fine. If the signature is complicated (I draw a lot) is not returning data and Blazor shows that is trying reconecting to the server for a moment.

Any idea?

Thanks

Òscar


6 Replies

YA YuvanShankar Arunagiri Syncfusion Team June 22, 2022 06:22 AM UTC

Hi Oscar,


We unable to replicate your reported issue in our end. Please refer the below attached video demonstration. The GetSignatureAsync method return the data depends on the client to server communicate only, not on simple/complex signature. Please ensure the Syncfusion script referring file.


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


Regards,

YuvanShankar A


Attachment: signature_(3)_1b2fe923.zip


ÒM Òscar Martí June 22, 2022 09:40 AM UTC

Hi  YuvanShankar,

Thanks for your answer. I have replicated your code (in fact I was already using the one from the Syncfusion website) and it still fails. I attach a video.


Regards,

Òscar



Attachment: Signature_9b653880.zip


ÒM Òscar Martí June 22, 2022 02:25 PM UTC

Hi  YuvanShankar,

An update. I have done more tests and it seems that bigger signature container is, the failure occurs sooner.


Attached video.


Òscar


Attachment: Signature2_71ec82c0.zip


YA YuvanShankar Arunagiri Syncfusion Team June 29, 2022 05:37 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



ÒM Òscar Martí June 29, 2022 09:08 AM UTC

Hi  YuvanShankar,


I have found the cause and the solution. A large amount of data is transmitted with complex or big signatures, causing Blazor to display a reload error.


To solve the problem you have to change the maximum size of a single incoming hub message (default is 32KB) adding this line in Program.cs (in Blazor Server).


builder.Services.AddServerSideBlazor().AddHubOptions(o => o.MaximumReceiveMessageSize = null);


Then works fine.


Regards,

Òscar



YA YuvanShankar Arunagiri Syncfusion Team June 30, 2022 07:03 AM UTC

Hi Oscar,


Thanks for sharing this solution. Please let us know if you need any other assistance.


Regards,

YuvanShankar A


Loader.
Up arrow icon