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
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
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
Hi YuvanShankar,
An update. I have done more tests and it seems that bigger signature container is, the failure occurs sooner.
Attached video.
Òscar
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
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
Hi Oscar,
Thanks for sharing this solution. Please let us know if you need any other assistance.
Regards,
YuvanShankar A