473,480 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1789
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
13072
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
3977
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
1981
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
3333
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
1990
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
2086
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
3503
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
5236
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
1517
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
6979
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7087
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
6944
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...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.