title: Can't import org.springframework.mock.web.MockMultipartFile outside of testing classes
body: <p>I'm trying to turn an image stored as a Blob in my DB into a MultipartFile to serve back to the client when it's requested. I retrieve the Blob as a byte[] and I'm trying to convert it into a MultipartFile to serve back to the client</p>
  
  <p>I'm trying to do it this way : <a href="https://stackoverflow.com/a/25820543/7082628">https://stackoverflow.com/a/25820543/7082628</a> </p>
  
  <p>But IntelliJ is telling me it can't find the MockMultipartFile part when I do the import of: <code>import org.springframework.mock.web.MockMultipartFile</code><br>
   I can import this in a test class no problem, but not outside of the test class. Can I do it here?</p>
  
  <p>Also, I tried to do this by implementing a class with my own version of MultipartFile as stated in another popular answer, but it's telling me it can't find a serialzer. </p>
  
  <p>Any suggestions? </p>