Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, February 7, 2020 6:23 PM
Does anyone have sample code or can send me in the right direction on how to save and retrieve images from a desktop windows form application to Azure?
All replies (5)
Friday, February 7, 2020 8:21 PM âś…Answered
I'm going to move your question to an Azure forum for better support.
Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
NuGet BaseConnectionLibrary for database connections.
Friday, February 7, 2020 7:42 PM
If you have the connection string then you then should be able to work with the database with a native data provider. So if SQL-Server use SqlClient.
For Sql-Server a read operation would look similar to the following code sample. Also although this is C# is may help with this task.
You should always specify the database being used as there are several types.

Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
NuGet BaseConnectionLibrary for database connections.
Friday, February 7, 2020 8:10 PM
My apologies. I have multiple clients that would be wanting to store images. I'm wanting to store the image like you would in a file directory on your local device but instead of storing it locally store the file in Azure. I currently allow users to either store their FileData(image) in a SQL database File Table or store it locally on their device or a network drive in a folder path and filename. My code will retrieve the image, either stored in the DB or the FilePath and FileName if a checkbox is checked. However, with image sizes becoming larger these days storing them in a DB can explode the size of the DB rather quickly. As long as they have an internet connection whether from a desktop or mobile device I'd like to store the images somehow utilizing Azure. Some of my clients DB's are on an Virtual device in Azure and are connected and synced to through merge replication by both desktops and mobile devices. Some of my clients have their main DB on a local server and mobile devices with an SQL Express DB locally sync through merge replication to the main server DB.
Saturday, February 8, 2020 1:13 AM
Want to provide a sample application that uses Azure Blob Storage and Azure Functions to resize and store images.
Resizing Images using Azure Functions
You mentioned quite a few details, which I guess indicates that the source for the image could be from multiple places. The solution I present here could be integrated to receive such an image and it being resized accordingly and stored using Azure Storage and not a database.
Please let me know if you have additional questions or specific requirements.
Thank you,
Mike
Thursday, February 20, 2020 5:22 PM
OK, thanks.