-
Basically, I have an Image File which the user uploads. Then that image is turned into a dynamic image and the bytes are stored in a database. Then a user can comeback and query the DB to get the binary back and return the image. The problem is that the system does not seem to be working at all. Here is the code:
Then when reading it back I do the following:
The problem is that the response seems to have no data in it. When I go to My question is what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved it. Basically, you have to use the write_to for Dynamic Images to write to the buffer and return that rather than serving the client the into_bytes method. |
Beta Was this translation helpful? Give feedback.
Solved it. Basically, you have to use the write_to for Dynamic Images to write to the buffer and return that rather than serving the client the into_bytes method.