controller
@RequestMapping(value = "imagefetch", method = RequestMethod.GET)
   @ResponseBody
   public void displayimage(@RequestParam String filename, HttpServletRequest request, HttpServletResponse response) {

      ServletOutputStream out;
      try {
         response.setContentType("image/jpeg");
         out = response.getOutputStream();
         FileInputStream fin = new FileInputStream("/home/vpatel/Desktop/image/" + filename);

         BufferedInputStream bin = new BufferedInputStream(fin);
         BufferedOutputStream bout = new BufferedOutputStream(out);
         int ch = 0;

         while ((ch = bin.read()) != -1) {
            bout.write(ch);
         }

         bin.close();
         fin.close();
         bout.close();
         out.close();

      } catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }

   }

display

<c:forEach items="${user}" var="x">
<tr>
<td>${x.userid}</td>

<td>${x.usertype}</td>
<td><img src="imagefetch?filename=${x.profileimg}"
height="50px" widtd="50px" /></td>
<td><a href="delete?userid=${x.userid}">Delete</a></td>
<td><a href="update?userid=${x.userid}">Update</a></td>
<td><a href="qualification/home?userid=${x.userid}">Edit
Qualification</a></td>
<td><a
href="qualification/showqualification?userid=${x.userid}">View
Qualification</a></td>
</tr>
</c:forEach>
dao
 public String getOldFilename(int userid) {

      String sql = " SELECT profileimg from user_details where userid=" + userid;
      String profileimg = template.queryForObject(sql, String.class);

      return profileimg;
   }
Step 1 : Click on I accept the license terms and click on next button

Step 2 : Select Developer Default option and click on next button

Step 3 : Click on next button

Step 4 : Click on Execute button

 Step 5 : Wait for complete the installation, then click on next button 

Step 6 : Product Configuration, click on next button

Step 7 : Select Standalone Mysql server/Classic Mysql Replication and click on next button

 Step 8 : Select Development Machine on Config Type, then set the port number on 3306, and click on next button 

Step 9 : Set the Mysql Root Password , and set Mysql User Accounts (optional), click on next button

Step 10 : Now, check Configure MYSQL Server as Windows Service, Check Start the MYSQL Server at system Startup, select Standard System Account and click on next button

Step 11 : Plugins and Extensions, you just click on next button

Step 12 : Apply Configuration, Click on execute button, wait few minutes for execute to process

Step 13 : Product Configuration, just click on next button

Step 14 : MySQL Router Configuration just click on next button

Step 15 : Again Product Configuration, just click on next button

Step 16 : Connect To server, enter the User and Password Click on check button, then next button

Step 17 : Again Apply Configuration, Click on execute button, wait few minutes for execute to process

Step 18 : Again Product Configuration, just click on next button

Step 19 : And last Finish the installation, click on Finish button

If any query to installation,  comment your query/queries to below comment box.  

Share this post with your friends.😊


others post:

Download mysql for windows | how to download mysql

samsung galaxy a9 | samsung a9 | samsung galaxy a9 specification

how to make bootable pendrive | bootable pendrive cmd | bootable pendrive


pubg update | pubg upcoming updates









Step 1: Goto https://dev.mysql.com


Step 2: Click on Downloads tab, then scroll down and click on Communtiy (GPL) Downloads

----------------------------------------------------------


Step 3: Click on MYSQL Community Server (GPL)


Step 4: After click, scroll down and click on Go to Download Page


Step 5: Click on large file according to your Operating System


Step 6: And last, click on no thanks, just start my download

Your downloading is start...


samsung galaxy a9 | samsung a9 | samsung galaxy a9 specification

how to make bootable pendrive | bootable pendrive cmd | bootable pendrive


pubg update | pubg upcoming updates







how to make gif | create gif in photoshop




Related post click here:


Follow on :

Share this post with your Friends