Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversion problem  RSS feed

 
Mohammad Farhat
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
i've got this issue, i have an ImageInputStream instance, which i need to send to some specific API (JJ2000) under the shape of an InputStream (or at best, as a RandomAccessIO instance)
anyway to convert from ImageInputStream to any of these two other types?
Thanks a lot,
Best,
Mohammad
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try writing an adapter -- InputStream only has nine methods.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!