2014年7月13日 星期日

[RESOLVED] How to Retrieve Image from Database using QueryString


First visit this URl:   http://postimg.org/image/k7a3ej78x/


you will get what is my question?


Note:  i want to use query string to do this functionality.


Step by step Help will be highly appreciable



Thanks


Ramanuj









check this


http://aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx


create dedicated image handler file (.aspx or .ashx) which will accept querystring value and retrive image from database based on querystrign and output the image using response object


in u r master page put asp:image control and set imageurl as image handler file... as



hope this helps...



Saving images to database is not that advisable. Why not save to a folder and save the URL path to Database?



try save the image in the database by converting it into BLOB, with a corresponding id


then use the id as query string




沒有留言:

張貼留言