473,387 Members | 1,844 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,387 software developers and data experts.

graphics files, MySQL and Java

marcbachman
Hello-
I hope to have a touchscreen Java application soon that will display images and text fetched from a MySQL database. ( terminal runs the application on a remote server on the LAN ) I have seen an earlier post that suggests simply storing the URL for the image file in the database, however, I was hoping to avoid that since I'm not using a browser ( I think) or HTML. The images will probably be in the < 99 KB range, but I don't have any experience at all with what kind of performance sacrifice that might cause. I'm only working with a few dozen images, but I might as well do it right from the start. Can I store a ~/path in MySQL or just put them in the same folder as the application and get the best results?
Also, I'm supposed to create an interface kind of like sqlplus where somebody who is not a programmer can Add/Edit/Delete from the database and I need to make it as easy to code and as easy for them as I can.
Jan 17 '07 #1
1 2091
ronverdonk
4,258 Expert 4TB
You should not store a path name in the db, just the image file name. In your server handling code you can setup a path in a variable string and append the image name from the db to that to get the full name. This makes you more flexible because, in case you move your images to another directory you'd only have to change 1 variable, while, when it is stored in the db, you'd have to change all filenames.

As to your question about an interface: we are willing to help people who have problems or questions on scripts they are working on. We do not produce any ready-made code. You'll have to develop that yourself. And, of course, we will assist you, but the development work is yours.

Ronald :cool:
Jan 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: BlackHawke | last post by:
My name is Nick Soutter, I own a small game development company (www.aepoxgames.net) making our first game (www.andromedaonline.net) in java. I am writing because we are having a very...
1
by: Tony Johansson | last post by:
Hello! I'm reading in a document about "Graphical user Interface Programming" and it says the following. "The Java "Swing" toolkit is implemented on top of the Java 2D graphics package, which...
0
by: Monica Ferrero | last post by:
Hi! I'm not sure if this is the most adequate mySQL list for this post. If not, please indicat me which one I should use... I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the...
0
by: Robert Mazur | last post by:
MySQL 5.0 alpha (binary install) on Solaris 9 -or- RedHat 8.0 mysql-connector-java-3.0.8-stable ----------------------- Is there something different going on with JDBC and the alpha version...
4
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design)....
6
by: Jack Nielsen | last post by:
Is it possible to make a sprite fly around in a c# web application ? How much graphics cappabilities are the with C# and web, I know that some of my friends have made many nice graphics demos...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
11
by: achiever | last post by:
I am a IIIrd electronics Engg student i want to know what is the role of graphics in c is it ok to spend a lot of time on learning c graphic or to start the new language like JAVA. Thanks in...
3
by: tulika dutta | last post by:
after 8 hrs my MySQL connection with JDBC gets time out. It gives the error java.sql.SQLException: No operations allowed after connection closed.Connection was implicitly closed due to underlying...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...

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.