473,789 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ 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 1829
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.BITC H> wrote in message
news:uo******** ********@TK2MSF TNGP14.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.BITC H> wrote in message
news:uo******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:55******** *************** ***********@mic rosoft.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.BITC H> wrote in message
news:uo******** ********@TK2MSF TNGP14.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****@discuss ions.microsoft. com> wrote in message
news:55******** *************** ***********@mic rosoft.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.BITC H> wrote in message
news:uo******** ********@TK2MSF TNGP14.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
13171
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 error CVT1100: duplicate resource. type:ICON, name:1, language:0x0409". But the resource ID is unique and only located in the new Resource1.h and MyResourceFile.rc files. Any ideas why this error is occuring? To generate the issue real quick, you...
1
4031
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 ==> .txt files from .resources or .resx files. ==> .resources files from text or .resx files.
0
2018
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 of the problem The main Smart Device Application contains 3 resource files under the Properties folder, in order to produce localization satellite asseblies. Those resource files are named Resources.resx (a default empty resource file),...
1
3359
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 name="${AppName}\**.en.resx" /> <include name="${AppName}\Global.asax.resx" /> </resources>
1
2008
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, pictures, and most importantly, error message strings in resource files so I don't have to go searching for them inside the code (if I want them changed). I know VS 2005 makes it MUCH easier to use and create resource files, but in my few times I have...
7
2107
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 the images that are used for icons across all of the forms in all of the assemblies in a single resource file so that swaping out an image in the resource file affects all localtions that it appears in the app. Is there a way to create a single...
2
3525
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 search resource file for this string id. After that I need to return translated string from other resouce file ? Is this best idea? Where to find sample code which implements this ?
12
5278
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
1555
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. My need is to open a solution programmatically, select a Project within, and get a source resource file. Then, select a number of cultures and create culture specific resources with the content of the source resource assembly. I aquired upto...
1
6999
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 in /resources I then started to add declarative code to the web forms to controls such as buttons and labels, as follows: <asp:Label ID="lblHowFindOut" runat="server" Text="<%$ Resources:how_did_you_find_out_about_this_site %>" />
0
9665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10408
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6768
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.