Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

open file

 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to do a file upload and download in my project.

I am using t:inputFileUpload to upload file. Code follows :



What I am trying to do is, the moment I selected the file ,the image will render and the when the user clicks on the link (see the image is inside a command link) the file selected will open. User can attach any type of file .

mybean :



I am stuck with this. The file is not opening. I can get printed statements only upto contentlength(in the method). Could anyone please help me to find out where am going wrong ?

Thanks,
Joe.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!