Click here to Skip to main content
15,913,854 members
Home / Discussions / Database
   

Database

 
QuestionCreating view in Access Pin
jadughar23-Dec-10 2:12
jadughar23-Dec-10 2:12 
AnswerRe: Creating view in Access Pin
Hiren solanki23-Dec-10 3:04
Hiren solanki23-Dec-10 3:04 
GeneralRe: Creating view in Access Pin
jadughar23-Dec-10 4:58
jadughar23-Dec-10 4:58 
QuestionRecursive query "SQL Server 2000" Pin
peropata22-Dec-10 23:37
peropata22-Dec-10 23:37 
AnswerRe: Recursive query "SQL Server 2000" Pin
Hiren solanki23-Dec-10 0:47
Hiren solanki23-Dec-10 0:47 
GeneralRe: Recursive query "SQL Server 2000" Pin
jschell23-Dec-10 7:26
jschell23-Dec-10 7:26 
AnswerRe: Recursive query "SQL Server 2000" Pin
PIEBALDconsult23-Dec-10 4:49
mvePIEBALDconsult23-Dec-10 4:49 
AnswerRe: Recursive query "SQL Server 2000" Pin
jschell23-Dec-10 7:38
jschell23-Dec-10 7:38 
QuestionSOLVED - How to concatenate column values of type text during SELECT...FROM...GROUP BY? [modified] Pin
liquid_22-Dec-10 2:34
liquid_22-Dec-10 2:34 
AnswerRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
Hiren solanki22-Dec-10 3:23
Hiren solanki22-Dec-10 3:23 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
liquid_22-Dec-10 20:35
liquid_22-Dec-10 20:35 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? [modified] Pin
Hiren solanki22-Dec-10 20:37
Hiren solanki22-Dec-10 20:37 
GeneralRe: How to concatenate column values of type text during SELECT...FROM...GROUP BY? Pin
liquid_22-Dec-10 23:58
liquid_22-Dec-10 23:58 
QuestionSQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 17:08
Joe Stansfield21-Dec-10 17:08 
AnswerRe: SQL Wildcard (%) query Pin
Luc Pattyn21-Dec-10 17:41
sitebuilderLuc Pattyn21-Dec-10 17:41 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:12
Joe Stansfield21-Dec-10 18:12 
GeneralRe: SQL Wildcard (%) query Pin
Luc Pattyn21-Dec-10 18:16
sitebuilderLuc Pattyn21-Dec-10 18:16 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:23
Joe Stansfield21-Dec-10 18:23 
AnswerRe: SQL Wildcard (%) query [modified] Pin
Luc Pattyn21-Dec-10 18:29
sitebuilderLuc Pattyn21-Dec-10 18:29 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield21-Dec-10 18:38
Joe Stansfield21-Dec-10 18:38 
GeneralRe: SQL Wildcard (%) query Pin
Luc Pattyn22-Dec-10 1:30
sitebuilderLuc Pattyn22-Dec-10 1:30 
AnswerRe: SQL Wildcard (%) query Pin
PIEBALDconsult22-Dec-10 3:38
mvePIEBALDconsult22-Dec-10 3:38 
AnswerRe: SQL Wildcard (%) query Pin
jschell23-Dec-10 8:04
jschell23-Dec-10 8:04 
GeneralRe: SQL Wildcard (%) query Pin
Joe Stansfield5-Jan-11 11:53
Joe Stansfield5-Jan-11 11:53 
QuestionExtracting a blob data file from sqlite Pin
crain198121-Dec-10 13:35
crain198121-Dec-10 13:35 
If (Decrypt_TextBox.Text = "") Then
               MessageBox.Show("Need to put in the file location or select file in grid for decryption")
           Else

               'declaring string for file'
               Dim filename As String
               'Getting the file name that is selected'

               filename = getFilename()
               'Starting to abstract the data from the database'
               database.ConnectionString = "Data Source = test.db3;"
               database.Open()
               Dim command As SQLite.SQLiteCommand
               Dim sqlstatement As String
               command = database.CreateCommand
               'The following will get the bytes of the file'
               Dim filesize As Integer
               sqlstatement = "SELECT FileSize From Vault WHERE FileName=@file;"
               command.CommandText = sqlstatement
               command.Parameters.AddWithValue("@file", filename)
               Dim reader As SQLite.SQLiteDataReader
               reader = command.ExecuteReader
               filesize = reader.GetValue(0)
               reader.Close()
               Dim data(filesize) As Byte
               'The following should get the data'
               sqlstatement = "SELECT FileData FROM Vault WHERE FileName=@file;"
               command.CommandText = sqlstatement
               command.Parameters.AddWithValue("@file", filename)
               reader = command.ExecuteReader


I have encrypted files in this database. I need to extract this file and decrypt it. I've been thinking about using a memory stream but these files will get fairly large (2GB). This is as far as I've gotten using vb .net framework 2.0. Any help is helpful?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.