How to create a Temp Blob with an image?

For testing a feature very similar to the standard Document Attachments using automated tests, I needed to create a Temp Blob filled with some tiny image in given, different image formats (jpg, png etc.).

Source : The BC Docs Librarian
Read more…