Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm working on a windows app store. i can save pictures on the local disk with this code

private async void Save(object sender, RoutedEventArgs e)
        {
            try
            {
                Windows.Storage.Pickers.FileSavePicker save = new Windows.Storage.Pickers.FileSavePicker();
                save.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.Desktop;
                save.DefaultFileExtension = ".png";
                save.FileTypeChoices.Add("PNG", new string[] { ".png" });
                StorageFile filesave = await save.PickSaveFileAsync();
                using (IOutputStream ab = await filesave.OpenAsync(FileAccessMode.ReadWrite))
                {
                    if (ab != null)
                        await m_InkManager.SaveAsync(ab);
                }
            }
            catch (Exception ex)
            {

                var dlge = new MessageDialog(ex.Message);
                dlge.ShowAsync();
            }


        }


i need to change the path of this code and save the pictures in an sq-lite database
Posted

1 solution

Any effort?

CodeProject itself has quite some good articles on this topic. Look at below links to give yourself a head start...

C# & SQLite - Storing Images[^]

http://zetcode.com/db/sqlitecsharp/images/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900