dynamic image from database# DotNet - 窗口里的风景
c*o
1 楼
I am going to display a image dynamically in a WebControl.image. The image
content will be retrieved from a database as byte array. It is OK if I
serialize them into a temporary image file, and then set the imageURL property
of the WebControl.image to the file. But there be lead to some problem, for
instance, when multiple users access the web page, the temporary image file
will be shared and messed up. If the image files are serialized with different
names, there will be disk storage overhead.
content will be retrieved from a database as byte array. It is OK if I
serialize them into a temporary image file, and then set the imageURL property
of the WebControl.image to the file. But there be lead to some problem, for
instance, when multiple users access the web page, the temporary image file
will be shared and messed up. If the image files are serialized with different
names, there will be disk storage overhead.