MarcoART_
How to insert an image from a MediaPicker into my database in C# (MAUI)
So, if the user takes a photo from their cellphone, then I store the image in the system and save the path in the database, upon retrieving this path, can any device view it even if this device didn't take the photo?
20 replies
How to insert an image from a MediaPicker into my database in C# (MAUI)
Well, in my case, what I'm doing is allowing a user to register information along with an image. My goal is for all devices to access this user-entered information and also view the image, which is why I was trying to save the image in my database.
If I save only the path, when retrieving the information, the path will only work for the device that uploaded the file, and others won't be able to view it.
I should also mention that if I generate the query within my database manager and execute it, the data is inserted without any issues. The error only occurs when I do it from the app.
20 replies