• Post Reply Bookmark Topic Watch Topic
  • New Topic

InputStream -> File

 
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: 9361
11
Linux Mac OS X Windows
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!