i want to retrieve image from database.
when the program run the user will give the id. belongs to that id the image will show.
please write the code for this.
response.getOutputStream().flush();
while((size=sImage.read(bytearray))!= -1 ){
response.getOutputStream().write(bytearray,0,size);
}
add the response.getOutputStream().flush(); before the while loop.
response.getOutputStream().flush();
while((size=sImage.read(bytearray))!= -1 ){
response.getOutputStream().write(bytearray,0,size);
}
add the response.getOutputStream().flush(); before the while loop
hi
which is to manage pictures, you will have to use HTML, Javascript and PHP languages. The data concerning the pictures will be stored in a MySQL data base.The way you will organise your directories containing HTML documents, PHP scripts, library files is important and it will be reflected in the final score.The interfaces that you will see in this document are given as example. You are free to organize your
own interfaces provided then can offer the same features.
For example, in the first interface, textual links are used to choose the feature. You may decide to give
other king of tool to do this choice : button, radio button, selection list, pictures,...
Navigating between these interfaces is important. You are free to decide how the user will be able to do
this navigation.The topic of the work,The project is the management of a collection of pictures.
At the beginning these pictures are supposed to be already stored on the Web server like this :
They are all in the same folder called "photos". This folder contains subfolders
in which the pictures are stored.photos--> pictA,pictB,pictC,pictD
These pictures are the original pictures and there size can be too important to be able to work with them directly.
The work is divided in three parts corresponding to three main features. Each of them can be reached
from the home page. This home page must contains tools which allow the user to activate these
activities.To do that, the application will send to the user an interface showing the list of the sub-folders. So, the
user will be able to choose which folder will be treated. The treatment is to create thumbnails for all the
pictures in the chosen folder. The thumbnail corresponding to a picture will have the name of the
picture with the prefix "min_".
Example :
The picture named "P12089.jpg" will have the corresponding thumbnail "min_ P12089.jpg".Just by clicking on the name of a sub-folder the user can start the creation of the thumbnails corresponding to the pictures of this sub-folder.The script creating these thumbnails will return an interface showing all the thumbnails of the subfolder.Identify a picture means to associate this picture with a location (only one location by picture), one or
several themes and one or several topics.
When the user ask to identify the pictures he must be able to choose the directory he wants to work on
(like when he creates the thumbnails).
Then he will be able to see the thumbnails contained in this folder (like when he creates the
thumbnails).
To choose the picture to be identify he just have to click on the thumbnail. Then he receives an
interface allowing him to give the informations concerning this picture. At the beginning, this interface
can look like :There is no location, no theme and no subject but this interface must allow the user to enter
new location, theme or subject. As soon as one of these informations is entered, it is inserted into the
interface like this :This example of interface indicates that there are one location and one theme in the corresponding tables but still no subject. The user selected the location and the theme and added a comment for the picture.When the user validates these informations he receives an interface which looks like
query on how to reduce the size of retrieved imagelegend April 11, 2011 at 10:47 AM
By using above example I get the image but how to set that retrieved image size . please reply as soon as possible.
image retrievekabita September 21, 2011 at 2:24 PM
i want to retrieve image from database. when the program run the user will give the id. belongs to that id the image will show. please write the code for this.
If any error foundprasanth chottathol September 27, 2011 at 7:21 PM
response.getOutputStream().flush(); while((size=sImage.read(bytearray))!= -1 ){ response.getOutputStream().write(bytearray,0,size); } add the response.getOutputStream().flush(); before the while loop.
If any error use this codePrasanth Chottathol September 27, 2011 at 7:24 PM
response.getOutputStream().flush(); while((size=sImage.read(bytearray))!= -1 ){ response.getOutputStream().write(bytearray,0,size); } add the response.getOutputStream().flush(); before the while loop
PROGRAMACIÃ?N POSTGRESQL JAVA SQLCarlos October 15, 2011 at 6:17 AM
Loading Images CONNECTED WITH JSP Servlet and PostgreSQL
bytea change with servlet jsp postgresql Charles October 15, 2011 at 6:20 AM
Why deployed image using this technologies
Resizing the imageThomas February 25, 2013 at 9:26 AM
Hey Roseindia, That was a great tutorial thank you. I am just wondering how to resize the image using jsp/css when it comes out the other end? Thanks
ThanksMahesh Chunkhade December 20, 2011 at 9:28 PM
This tutorial very useful . also very nice site for online learning.
with height and widthSujitha January 9, 2013 at 11:41 AM
Its working. But how to specify height and width.
websiteabdulrahman April 25, 2012 at 5:06 AM
hi which is to manage pictures, you will have to use HTML, Javascript and PHP languages. The data concerning the pictures will be stored in a MySQL data base.The way you will organise your directories containing HTML documents, PHP scripts, library files is important and it will be reflected in the final score.The interfaces that you will see in this document are given as example. You are free to organize your own interfaces provided then can offer the same features. For example, in the first interface, textual links are used to choose the feature. You may decide to give other king of tool to do this choice : button, radio button, selection list, pictures,... Navigating between these interfaces is important. You are free to decide how the user will be able to do this navigation.The topic of the work,The project is the management of a collection of pictures. At the beginning these pictures are supposed to be already stored on the Web server like this : They are all in the same folder called "photos". This folder contains subfolders in which the pictures are stored.photos--> pictA,pictB,pictC,pictD These pictures are the original pictures and there size can be too important to be able to work with them directly. The work is divided in three parts corresponding to three main features. Each of them can be reached from the home page. This home page must contains tools which allow the user to activate these activities.To do that, the application will send to the user an interface showing the list of the sub-folders. So, the user will be able to choose which folder will be treated. The treatment is to create thumbnails for all the pictures in the chosen folder. The thumbnail corresponding to a picture will have the name of the picture with the prefix "min_". Example : The picture named "P12089.jpg" will have the corresponding thumbnail "min_ P12089.jpg".Just by clicking on the name of a sub-folder the user can start the creation of the thumbnails corresponding to the pictures of this sub-folder.The script creating these thumbnails will return an interface showing all the thumbnails of the subfolder.Identify a picture means to associate this picture with a location (only one location by picture), one or several themes and one or several topics. When the user ask to identify the pictures he must be able to choose the directory he wants to work on (like when he creates the thumbnails). Then he will be able to see the thumbnails contained in this folder (like when he creates the thumbnails). To choose the picture to be identify he just have to click on the thumbnail. Then he receives an interface allowing him to give the informations concerning this picture. At the beginning, this interface can look like :There is no location, no theme and no subject but this interface must allow the user to enter new location, theme or subject. As soon as one of these informations is entered, it is inserted into the interface like this :This example of interface indicates that there are one location and one theme in the corresponding tables but still no subject. The user selected the location and the theme and added a comment for the picture.When the user validates these informations he receives an interface which looks like
http://www.technocratautomation.co.in/plc training india September 20, 2012 at 12:00 PM
i like your post
Post your Comment