I am trying to store some pictures into my SQL Server database from a Silverlight project, and I need some help, so my questions are:
-
How to convert an image to binary from a url to store it into my database (store all the image and not only the url)
-
Are there any other solutions, without passing by binary type? (since it exist the image type in SQL Server)
-
Finally, when the image is stored, how to read it from Silverlight?
Thank you in advance .
http://www.pitorque.de/MisterGoodcat/post/Storing-images-in-SQL-Server-with-RIA-Services.aspx
It is fully functional as in the user can select images from the local disk and upload them to the service where they are stored in the database. The user can retrieve a list of all images in the database and download them to the client for watching, and they can delete existing images from the database.