Insert excel file in SQLite Database in Iphone - iphone

We have a requirement to insert a excel/pdf file into SQLite database filed.How can we do this ? Is it possible to convert the excel/pdf file in some binary format and then insert into a blob field in DB? We don't want to save the files in the documents directory and store the file names in sqlite.

why not save the files in the documents directory and store the file names in sqlite?

Related

How to put xml from zip in a postgres table?

How can I put xml files from a zip file into a postgresql table?
COPY FROM 'zip/file.zip/*.xml';
There are a lot of xml files in the zip file.
I want to add rows containing xml files to the table.

How to make a csv file from multiple tables from sqlite in swift

I am trying to make a csv file from sqlite database.How to i make a csv file with table name as the header values in a single csv file in swift

Talend Data Integration - Read Multiple Files from a folder and load the data in mysql database

I have 5 files in a folder.file names are stored in date format like "2015-09-10.txt" to "2015-09-15.txt".
if I give starting file name as 2015-09-11.txt and end file is 2015-09-13.txt then it will read all the files present in between these two files(i.e read 11,12 and 13 date files).and load data into database. the other files will not insert in database.
my current Talend Package is :
tFileList -> tFileInputDelimited -> tMapProcessing -> tMysqlOutput.
You can use this file mask in the tFileList:
"2015-09-1[1-3]"
if you have something more complicated, generate the file name using tJavaFlex and iterate over file names:
tJavaFlex ------(iterate)------tFileInputDelimited-------(main)------tMap-------(main)--- tMysqlOutput

Store .fmt file in SQL Server

Is it possible to store .fmt file right in database like stored procedure, not in separate file?
Imported files varies, format file is constant for the procedure. No BLOBs, no FILESTREAM used.
...
FROM OPENROWSET (
BULK 'd:\path\some_variable_file.txt',
FIRSTROW = 2,
FORMATFILE = 'd:\path\importformat.fmt'
) AS import
OPENROWSET does not support any source besides the file system for FORMATFILEs. One option you could do is store the format file data (in either the non-xml or xml format) in a database and extract it with a powershell script

import Multiple records from csv file into sqlite3 database

Iam working on a app which needs huge to be stord in database and display it later, but problem is that how to insert that much data in database , i use .csv file to import data from file and store it in table ,Every thing is working fine but only one Row has been inserted in dataBase , any one have any idea how to insert multiple records in databse,
For Information Iam using Terminal for sqlite3,
You can use .import file table to load large file into the table from terminal, your file and table needs to be organized properly so that they have same columns.
Also you can do search and replace in text editor and then import file with .read filename command.
Type .help in terminal when in sqlite console for list of the commands available.