Skip to content

How to upload/load a file (e.g. images) with java play framwork, storing the file as BLOB.

License

Notifications You must be signed in to change notification settings

DirtyDan88/play-framework-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-framework-blob

I recently had the problem to upload and store images with java play framework (version 2.3.x) as BLOB. Uploading and shoveling the data in a byte-array was a piece of cake, but getting the data back into an image-tag was not that straight forward at first sight.

Internet research showed me, that I am not the first person who had to deal with this problem. So here is a small code snippet with the solution, is essentially a simple one-liner.

About

How to upload/load a file (e.g. images) with java play framwork, storing the file as BLOB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published