Cannot get inputStream from web url. Why?
I'm trying to create a book with an image in JUnit test using
MockMultipartFile
. But for unknown reasons the stream cannot be taken. Why?
8 Replies
⌛
This post has been reserved for your question.
Hey @Tomasm21! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Lets continue code:
createMultipartFileFromURL
:
Then this part:
results in:
Why is that?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ohh.. Its temporary. Ok I will read all bytes to byte array
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.