files from blob to orginal

Hi there. I’ve stored a file as a blob in my database. I’ve also stored the name of the file with it’s extention in another field.

How do I extract the blob and save it as my filename? I would probably save it in my temp folder and then launch it using shell :slight_smile:

Pull the StringValue out of the blob field. Create a FolderItem from the filename. Create a BinaryStream from the folderitem. Write the string to the binarystream. Done.

Unless you’re on OSX, then you need more information than you have stored.

cool - thanks!