473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Resource Files

Hi! I am designing a database driven application. The main purpose of this
application is to print signs and label with plant (botanical) information
and a picture of the plant. This is mainly intended for the nurseries. Our
application comes with 3500+ full plants description and hi-res picture for
each one, while the end user can add his own into the db. However, my boss
don't want the end user to have directly access to the picture (the one
provided with the application). At first, I thought I was going to store
only the path in a table field, but now I have to store the image into a
database. Since the picture are hi resolution, the picture will be al least
1.5+ mb, so we'll need two database (even more), that will for sure slow
down the cpu performance. So on another forum, some people told me to look
out for Resource File. I googled to find some information, few so far. What
I'd like to know from you guys, is what would be the way to go? Storing
picture in multiple database? Using Resource file??? Or anyone has some
better trick? Thank you! Your help is really appreciated!

Jean Christophe Avard
Nov 21 '05 #1
5 1787
Jean Christophe Avard wrote:
Hi! I am designing a database driven application. The main purpose of this
application is to print signs and label with plant (botanical) information
and a picture of the plant. This is mainly intended for the nurseries. Our
application comes with 3500+ full plants description and hi-res picture for
each one, while the end user can add his own into the db. However, my boss
don't want the end user to have directly access to the picture (the one
provided with the application). At first, I thought I was going to store
only the path in a table field, but now I have to store the image into a
database. Since the picture are hi resolution, the picture will be al least
1.5+ mb, so we'll need two database (even more), that will for sure slow
down the cpu performance. So on another forum, some people told me to look
out for Resource File. I googled to find some information, few so far. What
I'd like to know from you guys, is what would be the way to go? Storing
picture in multiple database? Using Resource file??? Or anyone has some
better trick? Thank you! Your help is really appreciated!

Jean Christophe Avard


Why not just encrypt the picture file? This way you can save them to
the hard drive, but a normal file can't open it. As you load the file
into memory you can decrypt it and load it into a image object using a
memory stream.

Just an idea.
Chris
Nov 21 '05 #2
Hello,

chris actually beat me to it, but I would also suggest encrypting the files
(jpeg or bmp) rather than storing them in the DB. whether it's Jet or SQL,
about the maximum size of a DB is 2GB, and with 3500+ 1.5MB pics to start,
you'd need at least 3 seperate DBs.

Check the following site for some quick pic encryption info:

http://www.efg2.com/Lab/ImageProcessing/CryptImage.htm

Encrypt your images. If the user adds images, have them stored in a
sub-directory of your images directory. When your loading images to view or
print, if they come from the user's sub-directory, skip the decryption
process.

HTH
Lee

"Jean Christophe Avard" <NO***@M.BITCH> wrote in message
news:uo****************@TK2MSFTNGP14.phx.gbl...
Hi! I am designing a database driven application. The main purpose of this
application is to print signs and label with plant (botanical) information
and a picture of the plant. This is mainly intended for the nurseries. Our
application comes with 3500+ full plants description and hi-res picture
for each one, while the end user can add his own into the db. However, my
boss don't want the end user to have directly access to the picture (the
one provided with the application). At first, I thought I was going to
store only the path in a table field, but now I have to store the image
into a database. Since the picture are hi resolution, the picture will be
al least 1.5+ mb, so we'll need two database (even more), that will for
sure slow down the cpu performance. So on another forum, some people told
me to look out for Resource File. I googled to find some information, few
so far. What I'd like to know from you guys, is what would be the way to
go? Storing picture in multiple database? Using Resource file??? Or anyone
has some better trick? Thank you! Your help is really appreciated!

Jean Christophe Avard

Nov 21 '05 #3
Saw your reply regarding the size of the Database. I wasn't aware that
either Acess or SQL databases had a limit on size. Does this apply to the
recent versions of both?
--
Dennis in Houston
"lgbjr" wrote:
Hello,

chris actually beat me to it, but I would also suggest encrypting the files
(jpeg or bmp) rather than storing them in the DB. whether it's Jet or SQL,
about the maximum size of a DB is 2GB, and with 3500+ 1.5MB pics to start,
you'd need at least 3 seperate DBs.

Check the following site for some quick pic encryption info:

http://www.efg2.com/Lab/ImageProcessing/CryptImage.htm

Encrypt your images. If the user adds images, have them stored in a
sub-directory of your images directory. When your loading images to view or
print, if they come from the user's sub-directory, skip the decryption
process.

HTH
Lee

"Jean Christophe Avard" <NO***@M.BITCH> wrote in message
news:uo****************@TK2MSFTNGP14.phx.gbl...
Hi! I am designing a database driven application. The main purpose of this
application is to print signs and label with plant (botanical) information
and a picture of the plant. This is mainly intended for the nurseries. Our
application comes with 3500+ full plants description and hi-res picture
for each one, while the end user can add his own into the db. However, my
boss don't want the end user to have directly access to the picture (the
one provided with the application). At first, I thought I was going to
store only the path in a table field, but now I have to store the image
into a database. Since the picture are hi resolution, the picture will be
al least 1.5+ mb, so we'll need two database (even more), that will for
sure slow down the cpu performance. So on another forum, some people told
me to look out for Resource File. I googled to find some information, few
so far. What I'd like to know from you guys, is what would be the way to
go? Storing picture in multiple database? Using Resource file??? Or anyone
has some better trick? Thank you! Your help is really appreciated!

Jean Christophe Avard


Nov 21 '05 #4
hi Dennis,

For Access, the max size of an MDB file is 2GB. You can however use multiple
MDB files with tables linked to one master MDB file, so you could
effectively have a database that is only limited by disk space. However,
from experience using Acess, you'd be pulling your hair out long before you
reached the initial 2GB limit on a single MDB file (just waiting for
transactions to process)

For MySQL, I apologize. I should have been more specific. the limitation on
size is not really related to MySQL (though it was in the past). The current
maximum table size in MySQL is 65536 TB (that's HUGE). The limitation is
based on the OS / file system type. A quick guide:

Operating System File-size Limit
Linux 2.2-Intel 32-bit 2GB (LFS: 4GB)
Linux 2.4+ (using ext3 filesystem) 4TB
Solaris 9/10 16TB
NetWare w/NSS filesystem 8TB
win32 w/ FAT/FAT32 2GB/4GB
win32 w/ NTFS 2TB (possibly larger)
MacOS X w/ HFS+ 2TB
I typically don't make the assumption that people are using NTFS, so I
typically say 2GB for MySQL as well, just to be safe, though I guess most
people are using at least FAT32 now, so 4GB would be ok.

Cheers
Lee

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
Saw your reply regarding the size of the Database. I wasn't aware that
either Acess or SQL databases had a limit on size. Does this apply to the
recent versions of both?
--
Dennis in Houston
"lgbjr" wrote:
Hello,

chris actually beat me to it, but I would also suggest encrypting the
files
(jpeg or bmp) rather than storing them in the DB. whether it's Jet or
SQL,
about the maximum size of a DB is 2GB, and with 3500+ 1.5MB pics to
start,
you'd need at least 3 seperate DBs.

Check the following site for some quick pic encryption info:

http://www.efg2.com/Lab/ImageProcessing/CryptImage.htm

Encrypt your images. If the user adds images, have them stored in a
sub-directory of your images directory. When your loading images to view
or
print, if they come from the user's sub-directory, skip the decryption
process.

HTH
Lee

"Jean Christophe Avard" <NO***@M.BITCH> wrote in message
news:uo****************@TK2MSFTNGP14.phx.gbl...
> Hi! I am designing a database driven application. The main purpose of
> this
> application is to print signs and label with plant (botanical)
> information
> and a picture of the plant. This is mainly intended for the nurseries.
> Our
> application comes with 3500+ full plants description and hi-res picture
> for each one, while the end user can add his own into the db. However,
> my
> boss don't want the end user to have directly access to the picture
> (the
> one provided with the application). At first, I thought I was going to
> store only the path in a table field, but now I have to store the image
> into a database. Since the picture are hi resolution, the picture will
> be
> al least 1.5+ mb, so we'll need two database (even more), that will for
> sure slow down the cpu performance. So on another forum, some people
> told
> me to look out for Resource File. I googled to find some information,
> few
> so far. What I'd like to know from you guys, is what would be the way
> to
> go? Storing picture in multiple database? Using Resource file??? Or
> anyone
> has some better trick? Thank you! Your help is really appreciated!
>
> Jean Christophe Avard
>


Nov 21 '05 #5
Thanks for clarification
--
Dennis in Houston
"lgbjr" wrote:
hi Dennis,

For Access, the max size of an MDB file is 2GB. You can however use multiple
MDB files with tables linked to one master MDB file, so you could
effectively have a database that is only limited by disk space. However,
from experience using Acess, you'd be pulling your hair out long before you
reached the initial 2GB limit on a single MDB file (just waiting for
transactions to process)

For MySQL, I apologize. I should have been more specific. the limitation on
size is not really related to MySQL (though it was in the past). The current
maximum table size in MySQL is 65536 TB (that's HUGE). The limitation is
based on the OS / file system type. A quick guide:

Operating System File-size Limit
Linux 2.2-Intel 32-bit 2GB (LFS: 4GB)
Linux 2.4+ (using ext3 filesystem) 4TB
Solaris 9/10 16TB
NetWare w/NSS filesystem 8TB
win32 w/ FAT/FAT32 2GB/4GB
win32 w/ NTFS 2TB (possibly larger)
MacOS X w/ HFS+ 2TB
I typically don't make the assumption that people are using NTFS, so I
typically say 2GB for MySQL as well, just to be safe, though I guess most
people are using at least FAT32 now, so 4GB would be ok.

Cheers
Lee

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
Saw your reply regarding the size of the Database. I wasn't aware that
either Acess or SQL databases had a limit on size. Does this apply to the
recent versions of both?
--
Dennis in Houston
"lgbjr" wrote:
Hello,

chris actually beat me to it, but I would also suggest encrypting the
files
(jpeg or bmp) rather than storing them in the DB. whether it's Jet or
SQL,
about the maximum size of a DB is 2GB, and with 3500+ 1.5MB pics to
start,
you'd need at least 3 seperate DBs.

Check the following site for some quick pic encryption info:

http://www.efg2.com/Lab/ImageProcessing/CryptImage.htm

Encrypt your images. If the user adds images, have them stored in a
sub-directory of your images directory. When your loading images to view
or
print, if they come from the user's sub-directory, skip the decryption
process.

HTH
Lee

"Jean Christophe Avard" <NO***@M.BITCH> wrote in message
news:uo****************@TK2MSFTNGP14.phx.gbl...
> Hi! I am designing a database driven application. The main purpose of
> this
> application is to print signs and label with plant (botanical)
> information
> and a picture of the plant. This is mainly intended for the nurseries.
> Our
> application comes with 3500+ full plants description and hi-res picture
> for each one, while the end user can add his own into the db. However,
> my
> boss don't want the end user to have directly access to the picture
> (the
> one provided with the application). At first, I thought I was going to
> store only the path in a table field, but now I have to store the image
> into a database. Since the picture are hi resolution, the picture will
> be
> al least 1.5+ mb, so we'll need two database (even more), that will for
> sure slow down the cpu performance. So on another forum, some people
> told
> me to look out for Resource File. I googled to find some information,
> few
> so far. What I'd like to know from you guys, is what would be the way
> to
> go? Storing picture in multiple database? Using Resource file??? Or
> anyone
> has some better trick? Thank you! Your help is really appreciated!
>
> Jean Christophe Avard
>


Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Danny Pressley | last post by:
I have a VS.NET 2003 Visual C++ MFC Application Project in which I added a new resource file, I then added an icon to this new resource file and did a rebuild and got the following error: "fatal...
1
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
1
by: urban.john | last post by:
Here are my steps: create resource files from resx files: <echo message="CREATING RESOURCE FILES FROM RESGEN EN" /> <resgen todir="product\resources_en" verbose="true"> <resources> <include...
1
by: Tom | last post by:
This may seem a little strange, but in all my years of developing Windows Forms apps, I've never really used Resource files; however, I would like to start doing so in order to store icons,...
7
by: craig | last post by:
....quick question for anyone who might have some experience with .net resource files in VS 2003. I have an application that is not localized, but I would still like to be able to place all of...
2
by: Andrus | last post by:
I have resource files in different languages created by VCS 2005 Express. I want to use those files to translate reports at runtime. I have text to be translated as string. I think I need to...
12
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
by: VigneshS | last post by:
Hi, I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource. ...
1
by: TisMe | last post by:
Hi All, I am trying to use resource files to globalize my website application. I had this working fine, working through the API for setting page titles programatically, with the resource files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.