I am using Kendo File Upload for upload files and after uploading I convert the file to Byte array and save it on Database in the Binary data format. My requirement is I want to display the uploaded files(Take byte array content of files from database and the convert it into Base64 string and pass to View using View Bag,thees section is I I did) in the uploaded area,ie the area where I upload files.
V<imgsrc="@ViewBag.ImageData"/> @*ImageData Contain the files,taken from Dtabase
@* The file Upload code,What changes are I done this code for display files in the Uploaded area ?
What about if you just want to show one initial file? I have my upload functionality in a Grid Popup Editor but the Model values are always undefined for the Initial file configuration and I don't know why.
Because other developers may encounter the same issue, I will post below my answer from the support thread that you have opened on the same topic (with the valuable addition that you have provided).
The issue, in this case, is that the pop-up edit template is actually a client-side template. It will be evaluated once on the initial load of the Grid when it will not know about the actual file that needs to be loaded in its Upload widget.
In order to resolve that issue, I would suggest you place a simple <input type="file"/> on the template: