This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

InputStream -> File  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Can we convert ( cast ) a InputStream object into File object . If yes , then please put some code for that ..

Thanks a lot .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You cannot cast a File to an InputStream and viceversa. You can however create one out of the other - and the java.io JavaDocs is the place to look to find out how.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please put code or link for that .

Thanks a lot .
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!