Hello,
SfUploader on FileSelected method is always empty i want to preview the selected image but it returns always empty string or {} string
another problem is the SfPdfViewerServer loads only from wwwroot but when i load base64 its disconnect and reconnect to server and nothing shown in the page
Query |
Details | |
SfUploader on FileSelected method is always empty i want to preview the selected image but it returns always empty string or {} string
|
We can get the selected image in the SelectedEventArgs parameter of the FileSelected event. Kindly refer to the below screenshot
Test sample: https://www.syncfusion.com/downloads/support/forum/168459/ze/BlazorServerApp5.01813809076
If you still face any issue, please share us the sufficient information to replicate the issue in our end. This will help us provide a prompt solution | |
another problem is the SfPdfViewerServer loads only from wwwroot but when i load base64 its disconnect and reconnect to server and nothing shown in the page
|
We have checked by loading the PDF document from base64 string. We were unable to reproduce the reported issue. We have shared the sample and code snippet in which we tried to replicate this issue.
Code snippet:
Could you please try the sample and revert us, whether the reported issue is resolved or not? If the issue is not resolved, kindly share the modified sample in which you are facing this issue. It will be helpful for us to investigate further and provide the details at the earliest.
|
i solved this by increasing the MaximumReceiveMessageSize on hub options
Query |
Details | |
another problem is the SfPdfViewerServer loads only from wwwroot but when i load base64 its disconnect and reconnect to server and nothing shown in the page
i solved this by increasing the MaximumReceiveMessageSize on hub options
|
Thank you for your update. We are glad to know that the reported issue is resolved. | |
We can get the selected image in the SelectedEventArgs parameter of the FileSelected event. yes we can but how i can show the selected image without the need to upload it to server the raw file is empty as it shown in the picture
|
We modified the sample based on the requirement. Also, convert the file to base64 string and set to the source element of image. Refer the below code.
Please find the sample below.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Uploader_image_preview-801036524
|
thanks this worked