How to read image file from public folder on the client?


#1

I would like to read an image “test.gif” from the public folder on the client and not from the server (where I have access to var fs = Npm.require(‘fs’)). How can I do that?


#2

#3

example : you have path public/img/bunny.jpg

you can do like this :

<img src="/img/bunny.jpg">

#4

yes displaying it in a img tag is working okay. I just want to have a file or blob to from the file saved in the public folder to for example use it in collectionFS. I dont want to display it at this time.