Click here to Skip to main content
15,890,609 members
Home / Discussions / Database
   

Database

 
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?
AnswerRe: Extracting a blob data file from sqlite Pin
Luc Pattyn21-Dec-10 13:55
sitebuilderLuc Pattyn21-Dec-10 13:55 
GeneralRe: Extracting a blob data file from sqlite Pin
crain198121-Dec-10 14:34
crain198121-Dec-10 14:34 
AnswerRe: Extracting a blob data file from sqlite Pin
Luc Pattyn21-Dec-10 14:41
sitebuilderLuc Pattyn21-Dec-10 14:41 
GeneralRe: Extracting a blob data file from sqlite Pin
crain198121-Dec-10 15:04
crain198121-Dec-10 15:04 
GeneralRe: Extracting a blob data file from sqlite Pin
Luc 64801121-Dec-10 16:19
Luc 64801121-Dec-10 16:19 
GeneralRe: Extracting a blob data file from sqlite Pin
crain19818-Jan-11 5:27
crain19818-Jan-11 5:27 
QuestionIndex Fragmentation in Microsoft SQL Server [modified] Pin
Member 285321221-Dec-10 8:12
Member 285321221-Dec-10 8:12 
AnswerRe: Index Fragmentation in Microsoft SQL Server Pin
ScottM122-Dec-10 23:09
ScottM122-Dec-10 23:09 
Questionwrapper program Pin
kabir_2128920-Dec-10 19:11
kabir_2128920-Dec-10 19:11 
AnswerRe: wrapper program Pin
WoutL20-Dec-10 21:28
WoutL20-Dec-10 21:28 
AnswerRe: wrapper program Pin
Jörgen Andersson21-Dec-10 0:13
professionalJörgen Andersson21-Dec-10 0:13 
AnswerRe: wrapper program Pin
ScottM122-Dec-10 23:13
ScottM122-Dec-10 23:13 
QuestionMSSQL - How can I reference a column to update using a variable?? Pin
JTRizos20-Dec-10 9:01
JTRizos20-Dec-10 9:01 
AnswerRe: MSSQL - How can I reference a column to update using a variable?? Pin
PIEBALDconsult20-Dec-10 9:34
mvePIEBALDconsult20-Dec-10 9:34 
GeneralRe: MSSQL - How can I reference a column to update using a variable?? Pin
JTRizos20-Dec-10 11:12
JTRizos20-Dec-10 11:12 
GeneralRe: MSSQL - How can I reference a column to update using a variable?? Pin
PIEBALDconsult20-Dec-10 13:39
mvePIEBALDconsult20-Dec-10 13:39 
AnswerRe: MSSQL - How can I reference a column to update using a variable?? Pin
Jörgen Andersson20-Dec-10 9:39
professionalJörgen Andersson20-Dec-10 9:39 

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.