11-30-2012 12:46 AM
Please tell how to store jpeg images in SQL Server using NI Database Connectivity Toolset.
11-30-2012 12:52 PM
How about storing the images as files on a filesystem and then store the filepath to the images as a string in the databse?
Dan
12-03-2012 02:22 AM
Storing Images as files is not a secured way. The images can be deleted by anyone. Can I directly store the images in the database?
12-03-2012 10:21 AM
You can convert the images to a byte array and store the byte arrays in the database. This is not recommended for storing large images or a large nmuber of images. Most will recommend storing the path to a file on a filesystem as I previously suggested.
How about creating a more secure filesystem that is only accesible via your LabVIEW application?
Dan
12-04-2012 03:06 AM
Thanks for suggestion. Can you please tell how to make a secure filesystem that is only accessible trough Labview?
12-04-2012 04:19 AM
Set the secutiry options so Users group only has Read access, and the LV-programs account has Read+Write.
/Y
12-04-2012 09:10 PM
The application has to be installed on many computers with different users and they also have to store images in the same folder. How can I make that folder secure? Therefore I have to store the images in SQL server. For that can anyone please help.
12-05-2012 01:50 AM
http://www.w3schools.com/sql/sql_datatypes.asp
You setup a field as BLOB and store the binary of the picture there. Depending on the database it can be called differently as you can see in the link, in SQL server there's even a Image datatype.
/Y
12-05-2012 03:29 AM
The NI Database connectivity toolset only have six data types in the create table VI i.e. String, Long, Single, Double, Date/Time, Binary. But it does not have BLOB data type. Even in the binary data type it does not store too much data of the image. It gives an exception error. Please help in this regard.
12-05-2012 07:56 AM