Sponsored Content
Full Discussion: picture
Contact Us Post Here to Contact Site Administrators and Moderators picture Post 27256 by Nisha on Thursday 29th of August 2002 08:18:52 AM
Old 08-29-2002
Do u believe i uploaded a 40x40 image...

Still i could see nothing... Smilie

-Nisha
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

open a picture file in unix (putty)

hi i'm logged on to my schools unix machine via putty. how do i open/view a jpg picture file that is there on my root catalog? (2 Replies)
Discussion started by: javatutor
2 Replies

2. Shell Programming and Scripting

PHP: display text and picture

Can someone give me a script in php to: Connect to Mysql: DB= content TABLE = message Enter text , about 3000 characters, and put a image either left or right, top or bottom or the text. Please someone make me this script, ive spent several hours trying to figure it out. (1 Reply)
Discussion started by: perleo
1 Replies

3. What is on Your Mind?

found a picture that discribe the rules!!

found a picture that discribe the rules!!! hehe (2 Replies)
Discussion started by: pressy
2 Replies

4. UNIX for Dummies Questions & Answers

Changing picture at banner?

On my Ultra 60, when booting and at the banner screen, on the top left is a picture of a globe. On another machine (Ultra 60) its a picture of a Sun. Is this something on the graphics card, or is this picture located somewhere else and able to be changed? (0 Replies)
Discussion started by: ridgeback00
0 Replies

5. UNIX for Dummies Questions & Answers

Need help! How to gnuplot a picture??

I would like to ask if I have already plot a graph using gnuplot, the setting(made by others) is in "gnuplot.defaults": gnuplot> load '<ParadisDir>/inputs/gnuplot.defaults' gnuplot> splot 'box.in' with lines, '0t0001' w lines How to transform it to bmp file? (or other types of pictures?) ... (2 Replies)
Discussion started by: kelvin490
2 Replies

6. Shell Programming and Scripting

Email with jpg picture embedded - inline

Hi - The below code works perfectly for e-mailing HTML embeded with JPG picture sendmail -t <<EOT TO: ABC.TO@abc.com FROM: ABC.FROM@abc.com SUBJECT: Embed image test MIME-Version: 1.0 Content-Type: multipart/related;boundary="XYZ" --XYZ Content-Type: text/html; charset=ISO-8859-15... (5 Replies)
Discussion started by: sivakumar121
5 Replies

7. Programming

Download http picture using C++

Dear all, I am working on writing the script which can read a file (having the html path for some pictures) and download those picture in the given local directory. Please find my iniatitve here, however I am still not able to figure out the 'download' command. Any help is appreciated. ... (1 Reply)
Discussion started by: emily
1 Replies
MONGOGRIDFS.STOREUPLOAD(3)						 1						MONGOGRIDFS.STOREUPLOAD(3)

MongoGridFS::storeUpload - Stores an uploaded file in the database

SYNOPSIS
public mixed MongoGridFS::storeUpload (string $name, [array $metadata]) DESCRIPTION
PARAMETERS
o $name - The name of the uploaded file(s) to store. This should correspond to the file field's name attribute in the HTML form. o $metadata - Other metadata fields to include in the file document. Note These fields may also overwrite those that would be created automatically by the driver, as described in the MongoDB core documentation for the files collection. Some practical use cases for this behavior would be to specify a custom chunkSize or _id for the file. Note The filename field will be populated with the client's filename (e.g. $_FILES['foo']['name']). RETURN VALUES
Returns the _id of the saved file document. This will be a generated MongoId unless an _id was explicitly specified in the $metadata param- eter. Note If multiple files are uploaded using the same field name, this method will not return anything; however, the files themselves will still be processed. ERRORS
/EXCEPTIONS Throws MongoGridFSException if there is an error reading the uploaded file(s) or inserting into the chunks or files collections. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 1.2.5 | | | | | | | Changed second parameter to an array of meta- | | | data. Pre-1.2.5, the second parameter was an | | | optional string overriding the filename. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 MongoGridFS.storeUpload(3) HTML form example Suppose you have the following HTML form: <form method="POST" enctype="multipart/form-data"> <label for="username">Username:</label> <input type="text" name="username" id="username" /> <label for="pic">Please upload a profile picture:</label> <input type="file" name="pic" id="pic" /> <input type="submit" /> </form> If you wanted to store the uploaded image in MongoDB, you could do the following in the script handling the form submission: <?php $m = new MongoClient(); $gridfs = $m->selectDB('test')->getGridFS(); $gridfs->storeUpload('pic', array('username' => $_POST['username'])); ?> SEE ALSO
MongoGridFS.put(3), MongoGridFS.storeBytes(3), MongoGridFS.storeFile(3), MongoDB core docs on GridFS. PHP Documentation Group MONGOGRIDFS.STOREUPLOAD(3)
All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy