• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arg type of file input stream ?

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

FileInputStream can not be resolved to a type


String message[] = request.getParameterValues("message");
String propfile[] = request.getParameterValues("attachedFile");
String from1,to1,sub1,message1,propfile1;

from1 = from[0];
to1 = to[0];
sub1 = sub[0];
message1 = message[0];
propfile1 = propfile[0];
try{

// Get system properties
Properties props = System.getProperties();
props.load(new FileInputStream(propfile1));
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
TellTheDetails to learn how putting more effort into asking questions will result in people putting more effort into answering them.

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic