i need to prevent loading big images e.g max 100KB
but i only store url
1. user put url with image (i remember this string in database not image itself)
this cause that i can not check image size before store url in database
because user can store url and after this operation put bigger file at that location)
2. my web page generate some different image based on first image
and i need to load portion of image
to stream and set buffer size to 100KB + 1 Byte
if stream is larger than 100KB that user put bigger file
how can i accomplish that?
FileStream can not use URI as location only disc location
what should i use instead?
View Complete Post