-
Notifications
You must be signed in to change notification settings - Fork 397
How can I binding image by Base64? #90
Comments
Have same issue. Default file stored in database as base64 string and now I'm forced to store file at server to show preview of default file. |
Hi, HTML part: Javascript part (width Jquery):
Hope it help |
I had the same Issue but found a way to solve it. It's fairly simple.
Where name is the name of the field, src is the base64 string or real image src like example.jpg and lastly fname is the filename to be displayed. Simply call the function anywhere you want in your code after initializing dropify. Eg.
Hope it help |
hi how bind img data-default-file bianary
<input type="file" asp-for="Images" id="input-file-now-custom-1" class="dropify" data-default-file='@ViewBag.img' />
The text was updated successfully, but these errors were encountered: