Hi All,
I have a web site I am developing, and have a question. I would like
members to be able to upload pictures.
Do you think they should be saved as individual files or should they be
put in an MySQL database? Which would you recommend, and do you have any
sample code for accomplishing this?
Ciao . . . C.Joseph
And on the seventh day God said,
"I will rest . . . Murphy take over." 9 3669
C.Joseph Drayton said the following on 5/5/2006 9:25 AM: Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this?
Whatever the answer, it has nothing to do with Javascript.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote on 05 mei 2006 in comp.lang.javas cript: C.Joseph Drayton said the following on 5/5/2006 9:25 AM: Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this?
Whatever the answer, it has nothing to do with Javascript.
Unless you are using ASP-Jscript.
The NGs then (if using ASP, I mean!) to ask are:
news:microsoft. public.inetserv er.asp.general
or
news:microsoft. public.inetserv er.asp.db
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 9:25 AM:
Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this?
Whatever the answer, it has nothing to do with Javascript.
Actually it does Randy, I suspect that however I choose to get those
pictures, I will use a combination of JavaScript and PHP to manipulate
the pictures.
Right now I use a combination of JavaScript and PHP to handle the
existing databases so it would seem the same will be the case for
picture storage.
Ciao . . . C.Joseph
And on the seventh day God said,
"I will rest . . . Murphy take over."
C.Joseph Drayton said the following on 5/5/2006 10:09 AM: Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 9:25 AM:
Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this? Whatever the answer, it has nothing to do with Javascript.
Actually it does Randy,
Actually, it doesn't Joseph. There are two parts to what you are doing.
The What and the How. The How would be PHP and JS, the What would be
saving images, and saving images on the server - whether as individual
files or in a MySQL database - has nothing to do with client side
Javascript.
If anything, its a PHP/MySQL question and that would be more on how to
accomplish it instead of what you are trying to accomplish.
I suspect that however I choose to get those pictures, I will use a combination of JavaScript and PHP to manipulate the pictures.
And that is fine, but whether to save them in a Database (which is an
odd sounding request) or in a file has nothing to do with JS.
Right now I use a combination of JavaScript and PHP to handle the existing databases so it would seem the same will be the case for picture storage.
Your Javascript doesn't handle the databases, PHP does. JS on the client
may tell PHP to do it but it is PHP doing the work on the server.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Evertjan. said the following on 5/5/2006 10:05 AM: Randy Webb wrote on 05 mei 2006 in comp.lang.javas cript:
C.Joseph Drayton said the following on 5/5/2006 9:25 AM: Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this? Whatever the answer, it has nothing to do with Javascript.
Unless you are using ASP-Jscript.
<pedant>
ASP uses JScript, not Javascript, which I specified :)
</pedant>
But it still has nothing to do with c.l.j and client side scripting.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote on 05 mei 2006 in comp.lang.javas cript: <pedant> ASP uses JScript, not Javascript, which I specified :) </pedant>
<rebuff>
True, however, the two are intermingled in the sense that clientside
IE javascript is really jscript, and that(!) jscript is spoken here,
just as the ECMA javascript variant is.
</rebuff>
But it still has nothing to do with c.l.j and client side scripting.
c.l.j. is not clientside "in browser" only, but certainly clientside
oriented.
That is why I pointed to the two ASP NGs.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 10:09 AM: Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 9:25 AM:
Hi All,
I have a web site I am developing, and have a question. I would like members to be able to upload pictures.
Do you think they should be saved as individual files or should they be put in an MySQL database? Which would you recommend, and do you have any sample code for accomplishing this?
Whatever the answer, it has nothing to do with Javascript.
Actually it does Randy,
Actually, it doesn't Joseph. There are two parts to what you are doing. The What and the How. The How would be PHP and JS, the What would be saving images, and saving images on the server - whether as individual files or in a MySQL database - has nothing to do with client side Javascript.
If anything, its a PHP/MySQL question and that would be more on how to accomplish it instead of what you are trying to accomplish.
I suspect that however I choose to get those pictures, I will use a combination of JavaScript and PHP to manipulate the pictures.
And that is fine, but whether to save them in a Database (which is an odd sounding request) or in a file has nothing to do with JS.
Actually it is not really an odd question. I am use to using Clarion
for web based databases, and I can save them as a blob and have a
template that converts the JPG to/from blob. This is my first time
working on a web site where I didn't use Clarion for the database,
and I am finding that I have to use JavaScript to talk to PHP. I was
simply trying to find out which would be easier.
I was given a PHP script to handle the actual file saving, now I
need to figure out how to access the script via JavaScript. Right now I use a combination of JavaScript and PHP to handle the existing databases so it would seem the same will be the case for picture storage.
Your Javascript doesn't handle the databases, PHP does. JS on the client may tell PHP to do it but it is PHP doing the work on the server.
Ciao . . . C.Joseph
And on the seventh day God said,
"I will rest . . . Murphy take over."
C.Joseph Drayton said the following on 5/5/2006 1:34 PM: Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 10:09 AM:
<snip> I suspect that however I choose to get those pictures, I will use a combination of JavaScript and PHP to manipulate the pictures. And that is fine, but whether to save them in a Database (which is an odd sounding request) or in a file has nothing to do with JS.
Actually it is not really an odd question.
OK, for me it was. I have always saved them as files and been done with it.
I am use to using Clarion for web based databases, and I can save them as a blob and have a template that converts the JPG to/from blob.
OK.
This is my first time working on a web site where I didn't use Clarion for the database, and I am finding that I have to use JavaScript to talk to PHP. I was simply trying to find out which would be easier.
It would be easier and more efficient to simply save the image files.
I was given a PHP script to handle the actual file saving, now I need to figure out how to access the script via JavaScript.
<form action="saveIma geFiles.php" ....>
<input type="file">
<input type="submit" value="Upload files">
</form>
Then the file gets submitted to the server, no JS needed.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 1:34 PM: Randy Webb wrote: C.Joseph Drayton said the following on 5/5/2006 10:09 AM: <snip> I suspect that however I choose to get those pictures, I will use a combination of JavaScript and PHP to manipulate the pictures. And that is fine, but whether to save them in a Database (which is an odd sounding request) or in a file has nothing to do with JS. Actually it is not really an odd question.
OK, for me it was. I have always saved them as files and been done with it.
I am use to using Clarion for web based databases, and I can save them as a blob and have a template that converts the JPG to/from blob.
OK.
This is my first time working on a web site where I didn't use Clarion for the database, and I am finding that I have to use JavaScript to talk to PHP. I was simply trying to find out which would be easier.
It would be easier and more efficient to simply save the image files.
I was given a PHP script to handle the actual file saving, now I need to figure out how to access the script via JavaScript.
<form action="saveIma geFiles.php" ....> <input type="file"> <input type="submit" value="Upload files"> </form>
Then the file gets submitted to the server, no JS needed.
Thanks Randy,
I will give it a try.
Ciao . . . C.Joseph
And on the seventh day God said,
"I will rest . . . Murphy take over." This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sirano |
last post by:
Hello,
I'll want automatic upload pictures from a specified folder to the internet
with PHP code. Or does somebody know a Website where I could find an answer
for this.
Thanks,
Sirano
|
by: xool |
last post by:
Hi all
Can anyone tell me the simplest easiest way to upload pictures to a
directory.
It's for a content management page - text boxes for new record information
and a file browse form box for the picture...
many thanks
|
by: Gavin |
last post by:
I need some help, I need the code to allow people that visit my website to be
able to upload pictures to a file on my web server. I have been able to get
close, but not quite there yet.
Set fso = createobject("scripting.filesystemobject")
Set act = fso.CreateTextFile(server.mappath("test.jpg"), true)
act.WriteLine
act.Close
The above code will create the file but will not write any data in it. Below
|
by: slapshock |
last post by:
hi!!!!!!
is someone up there can give me the codes of uploading and retrieving pictures in visual basic 6.0...........
i really need those codes..........thnx
|
by: lyealain |
last post by:
hi guys.. i have spent up my time looking and understanding the sample code from everywhere for uploading picture into mysql database by using asp script.. but i found it very hard to understand... mostly are in access database...
i would like to store my picture by the path into the database... and retrieve it from database to put to the box (table) i specify.. if there are many pictures.. it will be shown like in friendster....
Is...
| |
by: onye52000 |
last post by:
Hi. I want to be able to change the text and pictures of a flash movie from a control panel on the same running flash movie. I will need to upload pictures on the movie with the necessary text describing the picture and it dynamically apply the changes to the existing movie. Can anyone help me out with the necessary steps/codes to effectively do this with ActionScripts/XML or any other format in Flash/SwishMax?
|
by: WeCi2i |
last post by:
Okay, I have a problem that has been stumping me for weeks. I have tried many different solutions and this is pretty much my last resort. I have seen a lot of good answers give here so I figured I would give it a try.
First of all, I am using Visual Studio 2005 to write my program. I am using C# .NET as the language. I am running Windows XP Professional with all service packs and updates applied.
Now, I have been trying to write a...
|
by: badvoc |
last post by:
Hi to all,
Firstly I must state my knowledge of php is limited but I am a quick learner. I have taken on the task of finishing a friends website due to his untimely passing and have hit a problem with the completion of his work.
The site involves the uploading of a picture, jpg, png or gif. as part of an order process. The files involved are called order.php, step1.php and then step2.php.
The picture uploads to the upload folder,...
|
by: Paul Brady |
last post by:
I have two users, Andrew and Nancy, who each have their own computer
and can connect to a common database called "employees.mdb" which
resides on a network server. On that same network server, there is a
folder containing jpegs of the employee pictures. When either person
brings up an employee's file, the computer goes into the network and
downloads the picture and displays it on the screen as part of the
form. Works fine, EXCEPT:
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
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 we have to send another system
| |
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...
| |