Last post Oct 21, 2020 09:26 AM by firstname.lastname@example.org
Oct 16, 2020 05:52 PMemail@example.com|LINK
I working on a project (classified web application), where user can upload multiple photos when posting an add. Please help me choose one that would best suits my requirement (blob vs file vs table) to save photos for each add posted by the user. If possible
please explain the difference and procedures to implement your suggestion. Thank you.
Oct 17, 2020 06:39 PM|EnenDaveyBoy|LINK
its depends what your planning to do and how.
Blobs are for storing any big data objects, files are for anything file specific with a valid extension and table storage it a key value store.
If your storing .raw files straight from a dlsr camera, or image creation software files they would be more suitable for blobs, then process that file into a more user friendly format like a jpg and store that in a file store, images wouldn't normally go
in a table store (its more like redis cache storage), but you could put things like profile images in it if you needed to.
if your just using general .jpg's you could just use file storage.
You may also need a database to manage the information about them.
blobs are slower because they deal with larger images, there is also a cost implementation you'd need to look into.
edit Table store is Wide Column Store
Oct 21, 2020 06:51 AMfirstname.lastname@example.org|LINK
Thank you for answering, If possible please help me to find an article to upload image to file storage. I tried but I did not find.
Oct 21, 2020 09:26 AMemail@example.com|LINK
Found the answer
foreach (var image in model.Photos)
var binaryReader = new BinaryReader(image.InputStream);
var byteArray = binaryReader.ReadBytes(image.ContentLength);